rpg-x2/lcc/bin/include/assert.h

15 lines
333 B
C
Raw Normal View History

2011-06-01 12:20:56 +00:00
/*
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 */