home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_07 / LATTIC_3.ZIP / HEADERS / ASSERT.H < prev    next >
C/C++ Source or Header  |  1990-09-29  |  370b  |  20 lines

  1. /*
  2.  * assert.h - define macros and prototypes for assertion validation
  3.  *
  4.  * Started 5/9/89 Alex G. Kiernan
  5.  *
  6.  * Copyright (c) 1990 HiSoft
  7.  */
  8.  
  9. #ifdef assert
  10. #undef assert
  11. #else
  12. void __assert(const char *, const char *, int);
  13. #endif
  14.  
  15. #ifndef NDEBUG
  16. #define assert(x)    (x?(void)0:_assert(#x,__FILE__,__LINE__))
  17. #else
  18. #define assert(x)    ((void)0)
  19. #endif
  20.