home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / math / rpn30src / debug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-10  |  424 b   |  30 lines

  1. /*
  2. | include this file always, change first line as needed
  3. */
  4.  
  5. /*** #define DEBUG ***/
  6.  
  7. #ifdef DEBUG
  8.  
  9. #ifndef DEBUG_H
  10. #define DEBUG_H
  11. #include <stdio.h>
  12.  
  13. #define DBG_FPRINTF(lst)    (fprintf lst)
  14.  
  15. void start_debug(void);
  16.  
  17. #ifdef DBG_MAIN
  18. FILE *errfile;
  19. #else
  20. extern FILE *errfile;
  21. #endif
  22. #endif    /* !DEBUG_H */
  23.  
  24. #else    /* !DEBUG */
  25.  
  26. #define DBG_FPRINTF(lst)
  27. #define start_debug()
  28.  
  29. #endif    /* DEBUG */
  30.