diff VMS.h @ 60:7b799a46cc87

Added compiler switch to turn on and off debug-only probes, deleted time-junk
author Me
date Mon, 08 Nov 2010 03:57:46 -0800
parents 407f8ede98b4
children 984f7d78bfdf dd3e60aeae26
line diff
     1.1 --- a/VMS.h	Sun Nov 07 06:51:34 2010 -0800
     1.2 +++ b/VMS.h	Mon Nov 08 03:57:46 2010 -0800
     1.3 @@ -33,21 +33,22 @@
     1.4     //turns on the probe-instrumentation in the application -- when not
     1.5     // defined, the calls to the probe functions turn into comments
     1.6  #define STATS__ENABLE_PROBES
     1.7 +//#define TURN_ON_DEBUG_PROBES
     1.8  
     1.9     //These defines turn types of bug messages on and off
    1.10     // be sure debug messages are un-commented (next block of defines)
    1.11 -#define dbgProbes FALSE   /* for issues inside probes themselves*/
    1.12 -#define dbgAppFlow TRUE  /* Top level flow of application code -- general*/
    1.13 -#define dbgB2BMaster FALSE/* in coreloop, back to back master VPs*/
    1.14 -#define dbgRqstHdlr FALSE /* in request handler code*/
    1.15 +#define dbgProbes    FALSE /* for issues inside probes themselves*/
    1.16 +#define dbgAppFlow   FALSE /* Top level flow of application code -- general*/
    1.17 +#define dbgB2BMaster FALSE /* in coreloop, back to back master VPs*/
    1.18 +#define dbgRqstHdlr  FALSE /* in request handler code*/
    1.19  
    1.20     //Comment or un- the substitute half to turn on/off types of debug message
    1.21  #define DEBUG(  bool, msg)         \
    1.22 -   if( bool){ printf(msg); fflush(stdin);}
    1.23 +//   if( bool){ printf(msg); fflush(stdin);}
    1.24  #define DEBUG1( bool, msg, param)  \
    1.25 -   if(bool){printf(msg, param); fflush(stdin);}
    1.26 +//   if(bool){printf(msg, param); fflush(stdin);}
    1.27  #define DEBUG2( bool, msg, p1, p2) \
    1.28 -   //if(bool) {printf(msg, p1, p2); fflush(stdin);}
    1.29 +//   if(bool) {printf(msg, p1, p2); fflush(stdin);}
    1.30  
    1.31  #define ERROR(msg) printf(msg); fflush(stdin);
    1.32  #define ERROR1(msg, param) printf(msg, param); fflush(stdin);