home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / include / debug.h < prev    next >
C/C++ Source or Header  |  1995-05-08  |  266b  |  19 lines

  1. // ------- debug.h
  2.  
  3. #ifndef DEBUG_H
  4. #define DEBUG_H
  5.  
  6. void fatal(const char *,const char *,int);
  7.  
  8. #undef Assert
  9. #ifdef NDEBUG
  10. #define Assert(p)   ((void)0)
  11. #else
  12. #define Assert(p) ((p) ? (void)0 : \
  13.         fatal(#p, __FILE__, __LINE__))
  14. #endif
  15.  
  16.  
  17. #endif
  18.  
  19.