home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / XAP / XGAMES / SPIDER.TAR / spider / assert.h next >
Encoding:
C/C++ Source or Header  |  1991-09-28  |  426 b   |  18 lines

  1. /*
  2.  *    Spider
  3.  *
  4.  *    (c) Copyright 1989,  Donald R. Woods and Sun Microsystems, Inc.
  5.  *    (c) Copyright 1990, David Lemke and Network Computing Devices Inc.
  6.  *
  7.  *    See copyright.h for the terms of the copyright.
  8.  *
  9.  *    @(#)assert.h    2.1    90/04/25
  10.  *
  11.  */
  12.  
  13. #ifdef DEBUG
  14. #define assert(ex)    {if (!(ex)){(void)fprintf(stderr,"Assertion \"ex\" failed: file \"%s\", line %d\n", __FILE__, __LINE__);abort();}}
  15. #else
  16. #define assert(ex)
  17. #endif
  18.