home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / emx / include / assert.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-18  |  342 b   |  19 lines

  1. /* assert.h (emx+gcc) */
  2.  
  3. #if defined (__cplusplus)
  4. extern "C" {
  5. #endif
  6.  
  7. #undef assert
  8.  
  9. #if defined (NDEBUG)
  10. #define assert(exp) ((void)0)
  11. #else
  12. void _assert (char *string, char *fname, unsigned int line);
  13. #define assert(exp) ((exp) ? (void)0 : _assert (#exp, __FILE__, __LINE__))
  14. #endif
  15.  
  16. #if defined (__cplusplus)
  17. }
  18. #endif
  19.