home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / STORM2.DMS / in.adf / Includes.LHA / assert.h next >
Encoding:
C/C++ Source or Header  |  1995-08-28  |  367 b   |  20 lines

  1. #ifndef __INCLUDE_ASSERT_H
  2. #define __INCLUDE_ASSERT_H
  3.  
  4. /*
  5. **  $VER: assert.h 10.1 (19.7.95)
  6. **  Includes Release 40.15
  7. **
  8. **  (C) Copyright 1995 Haage & Partner
  9. **     All Rights Reserved
  10. */
  11.  
  12. #ifdef NDEBUG
  13. #define assert(C)
  14. #else
  15. extern "Asm" void do__assert(char*, char*, unsigned int);
  16. #define assert(C) { if(!(C)) do__assert(#C, __FILE__, __LINE__); }
  17. #endif
  18.  
  19. #endif
  20.