home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / unixtools / unixlib / clib / h / assert next >
Encoding:
Text File  |  1992-07-21  |  244 b   |  14 lines

  1. /* assert.h (c) Copyright 1990 H.Rogers */
  2.  
  3. #ifndef __ASSERT_H
  4. #define __ASSERT_H
  5.  
  6. #ifdef NDEBUG
  7. #define assert(x)    ()
  8. #else
  9. extern    void        __fail(char *,char *,int);
  10. #define assert(x)    (void)((x) ? 0 : __fail(#x,__FILE__,__LINE__))
  11. #endif
  12.  
  13. #endif
  14.