home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 February / PCO_0299.ISO / filesbbs / dos / indigo01.exe / DEBUG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-21  |  783 b   |  27 lines

  1. // This program is free software; you can redistribute it and/or modify it
  2. // under the terms of the GNU General Public License as published by the Free
  3. // Software Foundation; either version 2 of the License, or (at your option)
  4. // any later version.
  5.  
  6. // You should have received a copy of the GNU General Public License along
  7. // with this program; if not, write to the Free Software Foundation, Inc., 675
  8. // Mass Ave, Cambridge, MA 02139, USA.
  9.  
  10. // debug.h
  11. // Header file for debugging stuff.
  12. #ifndef __DEBUG_H
  13. #define __DEBUG_H
  14.  
  15. // doDEBUG(q): run q if in debug mode.
  16. // ifDEBUG(x,y): run x if in debug mode, y otherwise.
  17.  
  18. #ifdef DEBUG
  19. # define doDEBUG(q)     q
  20. # define ifDEBUG(x,y)   x
  21. #else
  22. # define doDEBUG(q)
  23. # define ifDEBUG(x,y)   y
  24. #endif
  25.  
  26. #endif
  27.