2002-06-15 15:49:32 +00:00
|
|
|
/*
|
2010-02-22 21:24:09 +00:00
|
|
|
assert.h
|
2002-06-15 15:49:32 +00:00
|
|
|
*/
|
|
|
|
|
2010-07-25 14:53:06 +00:00
|
|
|
#include "_ansi.h"
|
|
|
|
|
2002-06-15 15:49:32 +00:00
|
|
|
#undef assert
|
|
|
|
|
|
|
|
#ifdef NDEBUG /* required by ANSI standard */
|
2010-02-22 21:24:09 +00:00
|
|
|
#define assert(p) ((void)0)
|
2002-06-15 15:49:32 +00:00
|
|
|
#else
|
|
|
|
|
|
|
|
#ifdef __STDC__
|
|
|
|
#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
|
|
|
|
#else /* PCC */
|
|
|
|
#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, "e"))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* NDEBUG */
|
|
|
|
|
|
|
|
void _EXFUN(__assert,(const char *, int, const char *));
|
|
|
|
|