#ifndef __XASSERT_H
#define __XASSERT_H

#define xassert(expr, ...) \
	if (!(expr)) _xassert(__FILE__, __LINE__, __FUNCTION__, #expr, __VA_ARGS__)

void _xassert (char *file, int line, char *function, char *expr, char *fmt, ...);

#endif
