assert.h 373 B

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