home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c329 / 2.img / INCL_A / ASSERT.H next >
Encoding:
C/C++ Source or Header  |  1989-09-23  |  426 b   |  18 lines

  1. /*  assert.h
  2.  *  ANSI C Runtime Library
  3.  */
  4.  
  5. #ifndef _ASSERT_H
  6. #define _ASSERT_H
  7. void  assert (int expression);
  8. void _assert (const char *problem, int line, const char *filename);
  9. #endif /* _ASSERT_H */
  10.  
  11. #undef assert       /* PLUM HALL believes that this is correct */
  12.  
  13. #ifdef NDEBUG
  14. # define assert(ignore)
  15. #else
  16. # define assert(value)  if ( !(value) ) _assert(#value,__LINE__,__FILE__)
  17. #endif /* NDEBUG */
  18.