home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 13 / DJCRX201.ZIP / include / assert.h < prev    next >
C/C++ Source or Header  |  1996-08-12  |  557b  |  28 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  3.  
  4. #undef assert
  5.  
  6. #if defined(NDEBUG)
  7. #define assert(test) ((void)0)
  8. #else
  9. #define assert(test) ((test)?(void)0:(void)__dj_assert(#test,__FILE__,__LINE__))
  10. #endif
  11.  
  12. #ifndef __dj_include_assert_h_
  13. #define __dj_include_assert_h_
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19. void    __dj_assert(const char *,const char *,int);
  20.  
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24.  
  25. #endif /* !__dj_include_assert_h_ */
  26.  
  27. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  28.