home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / ASSERT.H < prev    next >
C/C++ Source or Header  |  1992-11-18  |  342b  |  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.