2
0

assert.h 215 B

1234567891011
  1. #ifndef _BITS_ASSERT_H
  2. #define _BITS_ASSERT_H
  3. #ifdef NDEBUG
  4. # define assert(cond) (void) 0
  5. #else
  6. # define assert(cond) \
  7. ((void)((cond) || (__assert_fail(__func__, __FILE__, __LINE__, #cond), 0)))
  8. #endif
  9. #endif