rpg-x2/lcc/bin/include/assert.h
2011-06-01 14:20:56 +02:00

14 lines
333 B
C

/*
assert.h
*/
#ifdef NDEBUG /* required by ANSI standard */
#define assert(p) ((void)0)
#else
#define assert(p) ((p) ? (void)0 : (void) _assertfail( \
"Assertion failed: ", \
#p, __FILE__, __LINE__ ) )
int _assertfail(char *__msg, char *__cond, char *__file, int __line);
#endif /* NDEBUG */