home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_07 / MARK_WC2.LZH / INCLUDE / ASSERT.H < prev    next >
Text File  |  1988-04-27  |  404b  |  17 lines

  1. /*
  2.  * assert.h -- assertion verifier to test changes to code.
  3.  *
  4.  * Copyright (c) 1981-1987, Mark Williams Company, Chicago
  5.  * This file and its contents may not be copied or distributed
  6.  * without permission.
  7.  */
  8.  
  9. #if NDEBUG
  10. #define    assert(p)
  11. #else
  12. #define    assert(p)    if(!(p)){printf("%s: %d: assert(%s) failed.\n",\
  13.                 __FILE__, __LINE__, #p);exit(1);}
  14. #endif
  15.  
  16. /* End of assert.h */
  17.