home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / ZOO21E.EXE / DEBUG.H < prev    next >
C/C++ Source or Header  |  1991-07-11  |  643b  |  32 lines

  1. /* @(#) debug.h 2.1 87/12/25 12:22:02 */
  2.  
  3. /*
  4. The contents of this file are hereby released to the public domain.
  5.  
  6.                            -- Rahul Dhesi 1986/11/14
  7.  
  8. defines conditional function calls
  9.  
  10. Usage:  The statement
  11.  
  12.    debug((printf("y = %d\n", y)))
  13.  
  14. may be placed anywhere where two or more statements could be used.  It will
  15. print the value of y at that point.
  16.  
  17. Conditional compilation:
  18.  
  19.    if DEBUG is defined
  20.       define the macro debug(X) to execute statement X
  21.    else
  22.       define the macro debug(X) to be null
  23.    endif
  24. */
  25.  
  26. #ifdef DEBUG
  27. #define  debug(x)    x;
  28. #else
  29. #define  debug(x)
  30. #endif
  31.  
  32.