|
|
1.1.1.3 root 1: /* Allow this file to be included multiple times
2: with different settings of NDEBUG. */
1.1.1.2 root 3: #undef assert
1.1.1.3 root 4: #undef __assert
1.1.1.2 root 5:
1.1 root 6: #ifdef NDEBUG
1.1.1.5 root 7: #define assert(ignore) ((void)0)
1.1 root 8: #else
9:
1.1.1.4 root 10: void __eprintf (); /* Defined in gnulib */
1.1.1.3 root 11:
12: #ifdef __STDC__
1.1 root 13:
1.1.1.5 root 14: #define assert(expression) \
1.1.1.6 ! root 15: ((void) ((expression) ? 0 : __assert (#expression, __FILE__, __LINE__)))
1.1.1.5 root 16:
1.1.1.6 ! root 17: #define __assert(expression, file, lineno) \
1.1.1.5 root 18: (__eprintf ("Failed assertion `%s' at line %d of `%s'.\n", \
1.1.1.6 ! root 19: expression, lineno, file), 0)
1.1 root 20:
1.1.1.3 root 21: #else /* no __STDC__; i.e. -traditional. */
22:
1.1.1.5 root 23: #define assert(expression) \
1.1.1.6 ! root 24: ((void) ((expression) ? 0 : __assert (expression, __FILE__, __LINE__)))
1.1.1.5 root 25:
26: #define __assert(expression, file, lineno) \
27: (__eprintf ("Failed assertion `%s' at line %d of `%s'.\n", \
1.1.1.6 ! root 28: "expression", lineno, file), 0)
1.1.1.3 root 29:
30: #endif /* no __STDC__; i.e. -traditional. */
1.1 root 31:
32: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.