home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d0xx / d062 / hack.lha / HackIconII_Source / mydebug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-03-31  |  973 b   |  27 lines

  1. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
  2. * |_o_o|\\ Copyright (c) 1987 The Software Distillery.  All Rights Reserved *
  3. * |. o.| ||          Written by Doug Walker                                 *
  4. * | .  | ||          The Software Distillery                                *
  5. * | o  | ||          235 Trillingham Lane                                   *
  6. * |  . |//           Cary, NC 27511                                         *
  7. * ======             BBS:(919)-471-6436                                     *
  8. \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  9.  
  10.  
  11. /* DEBUG MUST BE DEFINED FOR REAL ELSEWHERE!!! */
  12.  
  13. #ifdef MYDEBUG
  14.  
  15. extern int debug;
  16.  
  17. #define BUG(lvl, args) {if(lvl<=debug){printf args ; fflush(stdout);}}
  18. #define BUGGETC(lvl) {if(lvl<=debug)\
  19.                        {printf("Hit return to continue: ");(void)getchar();}}
  20.  
  21. #else
  22.  
  23. #define BUG(lvl, args) {}
  24. #define BUGGETC(lvl) {}
  25.  
  26. #endif MYDEBUG
  27.