home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 497a.lha / ComSMUS_v2.2 / iffar.src / assert.h next >
C/C++ Source or Header  |  1991-04-07  |  287b  |  13 lines

  1. /* hackercorp - hackercore assert file for Amiga
  2.  * kel 12/87 v1.0
  3.  */
  4.  
  5. #ifndef NODEBUG
  6. #ifndef stderr
  7. #include <stdio.h>
  8. #endif
  9. #define assert(x) if (!(x)) {fprintf(stderr,"Assertion failed: x, file %s, line %d\n",__FILE__,__LINE__); cleanup(); exit(1);}
  10. #else
  11. #define assert(x)
  12. #endif
  13.