1
0

assert.h 287 B

1234567891011121314151617
  1. #pragma lib "/$M/lib/ape/libap.a"
  2. #undef assert
  3. #ifdef NDEBUG
  4. #define assert(ignore) ((void)0)
  5. #else
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. extern void _assert(char *, unsigned);
  10. #ifdef __cplusplus
  11. }
  12. #endif
  13. #define assert(e) {if(!(e))_assert(__FILE__, __LINE__);}
  14. #endif /* NDEBUG */