home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 6 / Sonderheft_6-96.iso / demo-versionen / stormc_v1.05-demo / include / assert.h next >
C/C++ Source or Header  |  1996-11-03  |  452b  |  26 lines

  1. #ifndef _INCLUDE_ASSERT_H
  2. #define _INCLUDE_ASSERT_H
  3.  
  4. /*
  5. **  $VER: assert.h 1.01 (18.1.96)
  6. **  StormC Release 1.0
  7. **
  8. **  '(C) Copyright 1995/96 Haage & Partner Computer GmbH'
  9. **     All Rights Reserved
  10. */
  11.  
  12. #ifdef NDEBUG
  13. #define assert(C)
  14. #else
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. void do_assert(char *, char *, char *, unsigned int);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #define assert(C) { if(!(C)) do_assert(#C, __FILE__, __FUNC__, __LINE__); }
  23. #endif
  24.  
  25. #endif
  26.