home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Programming / envsof20 / source / syntax / debug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-01  |  399 b   |  34 lines

  1. /*
  2.  * debug.h
  3.  *
  4.  * Copyright 1999 Thomas Aglassinger and others, see file "forum.txt"
  5.  */
  6.  
  7. #ifndef DEBUG
  8. #define DEBUG 1
  9. #endif
  10.  
  11. #if DEBUG
  12.  
  13. #define D(x)
  14.  
  15. #ifdef _DCC
  16. #define bug(x) kputs
  17. #else /* _DCC */
  18. #define bug(x) printf(x)
  19. #endif /* _DCC */
  20.  
  21. #else /* DEBUG */
  22.  
  23. #define D(x)
  24. #define bug(x)
  25.  
  26. #endif /* DEBUG */
  27.  
  28.  
  29. #if DEBUG == 2
  30. #define DD(x) DD((x))
  31. #else
  32. #define DD(x)
  33. #endif /* DEBUG == 2 */
  34.