Subversion Repositories Kolibri OS

Rev

Rev 9013 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _ASSERT_H_
  2. #define _ASSERT_H_
  3.  
  4. #include <stddef.h>
  5. #include <stdlib.h>
  6.  
  7. #ifdef NDEBUG
  8. #define assert(x) (void)0
  9. #else
  10. #define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__), 0)))
  11. #endif
  12.  
  13. #endif // _ASSERT_H_
  14.