home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 5.ddi / MWHC.005 / M4 < prev    next >
Encoding:
Text File  |  1992-12-09  |  477 b   |  30 lines

  1. /*
  2.  *   assert.h -- ANSI 
  3.  *
  4.  *   Diagnostic facilities.
  5.  *
  6.  *           Copyright (c) 1991, MetaWare Incorporated
  7.  */
  8.  
  9. #ifndef _ASSERT_H
  10. #define _ASSERT_H
  11.  
  12. #ifdef __CPLUSPLUS__
  13. extern "C" {
  14. #endif
  15.  
  16. #undef    assert
  17.  
  18. #ifdef NDEBUG
  19. #define assert(ignore) ((void)0)
  20.  
  21. #else
  22. void _assert(void *, void *, unsigned);
  23. #define assert(E) ((E)? (void)0 : _assert(#E, __FILE__, __LINE__))
  24.  
  25. #endif /* NDEBUG */
  26. #ifdef __CPLUSPLUS__
  27. }
  28. #endif
  29. #endif /*_ASSERT_H */
  30.