home *** CD-ROM | disk | FTP | other *** search
/ Doom 1 & 2 / Doom_1&2.iso / progs / reject11 / source / debug.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-01  |  374 b   |  27 lines

  1. #ifndef __DEBUG_HPP__                
  2. #define __DEBUG_HPP__                
  3.  
  4. #include <fstream.h>
  5.  
  6. class cdebugclass
  7. {
  8.      public:
  9.           ofstream out;
  10.           cdebugclass ();
  11.           ~cdebugclass ();
  12. };
  13.  
  14. extern cdebugclass cdebug;
  15.  
  16. #ifdef DEBUG
  17.  
  18. #define ONDEBUG(x) x
  19.  
  20. #else
  21.  
  22. #define ONDEBUG(x) 
  23.  
  24. #endif
  25.  
  26. #endif                            
  27.