home *** CD-ROM | disk | FTP | other *** search
/ Total Destruction / Total_Destruction.iso / addons / Lccwin32.exe / Lccwin32 / lccpub / include / ASSERT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-08  |  348 b   |  15 lines

  1. /*
  2.     assert.h
  3. */
  4.  
  5. #ifdef NDEBUG           /* required by ANSI standard */
  6. #define assert(p)      ((void)0)
  7. #else
  8.  
  9. #define assert(p)   ((p) ? (void)0 : (void) _assertfail( \
  10.                     "Assertion failed: ", \
  11.                     "p", __FILE__, __LINE__ ) )
  12. int _assertfail(char *__msg, char *__cond, char *__file, int __line);
  13.  
  14. #endif /* NDEBUG */
  15.