home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / xplatfrm / tierra / debug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-26  |  784 b   |  40 lines

  1. /* debug.h  28-10-91  debugging functions for the tierra simulator */
  2. /** Tierra Simulator V3.0: Copyright (c) 1991 Thomas S. Ray **/
  3. /** Tierra Simulator V3.0: Copyright (c) 1990, 1991 Marc W. Cygnus **/
  4.  
  5. #include "license.h"
  6.  
  7. /*
  8. debug_h_sccsid: %W%    %G%
  9. */
  10.  
  11. #ifndef _DEBUG_H
  12. #define _DEBUG_H
  13.  
  14. #ifndef u_long
  15. #include <sys/types.h>
  16. #ifdef __TURBOC__
  17. #define u_long unsigned long
  18. #endif
  19. #endif
  20.  
  21. #ifdef _DBGMainModule
  22. u_long        debug_state = 0L;
  23. #else
  24. extern u_long    debug_state; 
  25. #endif
  26.  
  27. #define    DEBUG(dbgst)    if (debug_state & (dbgst)) {
  28. #define    ENDDB()        }
  29.  
  30. #define    DBGIOTrace    0x0001
  31. #define    DBGIOTrace2    0x0002
  32. #define    DBGReqTrace    0x0004
  33. #define    DBGFlowCon    0x0008
  34.  
  35. #define DBGX        0x0010
  36.  
  37. #define DBGD        0x0020
  38.  
  39. #endif    /* add nothing past this line */
  40.