home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC6.DMS / in.adf / incl.lha / INCLUDE / assert.h next >
Encoding:
C/C++ Source or Header  |  1994-03-15  |  233 b   |  12 lines

  1. #ifndef __INCLUDE_ASSERT_H
  2. #define __INCLUDE_ASSERT_H
  3.  
  4. #ifdef NDEBUG
  5. #define assert(C)
  6. #else
  7. extern "Asm" void do__assert(char*, char*, unsigned int);
  8. #define assert(C) { if(!(C)) do__assert(#C, __FILE__, __LINE__); }
  9. #endif
  10.  
  11. #endif
  12.