|
|
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) \
! 15: ((expression) ? 0 : (__assert (#expression, __FILE__, __LINE__), 0))
! 16:
1.1 root 17: #define __assert(expression, file, line) \
1.1.1.5 ! root 18: (__eprintf ("Failed assertion `%s' at line %d of `%s'.\n", \
! 19: expression, line, file), \
1.1.1.3 root 20: abort ())
1.1 root 21:
1.1.1.3 root 22: #else /* no __STDC__; i.e. -traditional. */
23:
1.1.1.5 ! root 24: #define assert(expression) \
! 25: ((expression) ? 0 : __assert (expression, __FILE__, __LINE__))
! 26:
! 27: #define __assert(expression, file, lineno) \
! 28: (__eprintf ("Failed assertion `%s' at line %d of `%s'.\n", \
! 29: "expression", lineno, file), \
1.1.1.3 root 30: abort ())
31:
32: #endif /* no __STDC__; i.e. -traditional. */
1.1 root 33:
34: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.