1
0

assert.h 326 B

12345678910111213141516171819
  1. #include <features.h>
  2. #undef assert
  3. #ifdef NDEBUG
  4. #define assert(x) (void)0
  5. #else
  6. #define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0)))
  7. #endif
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. _Noreturn void __assert_fail (const char *, const char *, int, const char *);
  12. #ifdef __cplusplus
  13. }
  14. #endif