assert.h 365 B

123456789101112131415161718
  1. #ifndef __ASSERT
  2. #define __ASSERT
  3. #include <default.h>
  4. #ifndef NDEBUG
  5. extern void __assertion_failed(const char*,const char*,short)__ATTR_LIB_ASM_NORETURN__;
  6. /* Begin Auto-Generated Part */
  7. #define assert(p) ((p)?(void)0:__assertion_failed(#p,__FILE__,__LINE__))
  8. /* End Auto-Generated Part */
  9. #else
  10. #define assert(p) ((void)0)
  11. #endif
  12. #endif