home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 5 / CD_Magazyn_EXEC_nr_5.iso / Programy / Programowanie / vbcc07e.lzx / vbcc / amigawos / include / assert.h next >
Encoding:
C/C++ Source or Header  |  1999-03-20  |  281 b   |  15 lines

  1. #ifndef __ASSERT_H
  2. #define __ASSERT_H 1
  3. #endif
  4.  
  5. #undef assert
  6.  
  7. extern int __aprintf(const char *,...);
  8.  
  9. #ifndef NDEBUG
  10. #define assert(exp) ((void)((exp)?0:(__aprintf("Assertion failed: file %s, line %d\n",__FILE__,__LINE__),abort(),0)))
  11. #else
  12. #define assert(exp) ((void)0)
  13. #endif
  14.  
  15.