mirror of
https://github.com/UberGames/RPG-X2.git
synced 2024-12-18 16:40:53 +00:00
14 lines
333 B
C
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 */
|