Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 27:66b915959105 | 28:811288599b7e |
|---|---|
| 31 //#define USE_WORK_STEALING | 31 //#define USE_WORK_STEALING |
| 32 | 32 |
| 33 //turns on the probe-instrumentation in the application -- when not | 33 //turns on the probe-instrumentation in the application -- when not |
| 34 // defined, the calls to the probe functions turn into comments | 34 // defined, the calls to the probe functions turn into comments |
| 35 #define STATS__ENABLE_PROBES | 35 #define STATS__ENABLE_PROBES |
| 36 //#define TURN_ON_DEBUG_PROBES | |
| 36 | 37 |
| 37 //These defines turn types of bug messages on and off | 38 //These defines turn types of bug messages on and off |
| 38 // be sure debug messages are un-commented (next block of defines) | 39 // be sure debug messages are un-commented (next block of defines) |
| 39 #define dbgProbes FALSE /* for issues inside probes themselves*/ | 40 #define dbgProbes FALSE /* for issues inside probes themselves*/ |
| 40 #define dbgAppFlow TRUE /* Top level flow of application code -- general*/ | 41 #define dbgAppFlow FALSE /* Top level flow of application code -- general*/ |
| 41 #define dbgB2BMaster FALSE/* in coreloop, back to back master VPs*/ | 42 #define dbgB2BMaster FALSE /* in coreloop, back to back master VPs*/ |
| 42 #define dbgRqstHdlr FALSE /* in request handler code*/ | 43 #define dbgRqstHdlr FALSE /* in request handler code*/ |
| 43 | 44 |
| 44 //Comment or un- the substitute half to turn on/off types of debug message | 45 //Comment or un- the substitute half to turn on/off types of debug message |
| 45 #define DEBUG( bool, msg) \ | 46 #define DEBUG( bool, msg) \ |
| 46 if( bool){ printf(msg); fflush(stdin);} | 47 // if( bool){ printf(msg); fflush(stdin);} |
| 47 #define DEBUG1( bool, msg, param) \ | 48 #define DEBUG1( bool, msg, param) \ |
| 48 if(bool){printf(msg, param); fflush(stdin);} | 49 // if(bool){printf(msg, param); fflush(stdin);} |
| 49 #define DEBUG2( bool, msg, p1, p2) \ | 50 #define DEBUG2( bool, msg, p1, p2) \ |
| 50 //if(bool) {printf(msg, p1, p2); fflush(stdin);} | 51 // if(bool) {printf(msg, p1, p2); fflush(stdin);} |
| 51 | 52 |
| 52 #define ERROR(msg) printf(msg); fflush(stdin); | 53 #define ERROR(msg) printf(msg); fflush(stdin); |
| 53 #define ERROR1(msg, param) printf(msg, param); fflush(stdin); | 54 #define ERROR1(msg, param) printf(msg, param); fflush(stdin); |
| 54 #define ERROR2(msg, p1, p2) printf(msg, p1, p2); fflush(stdin); | 55 #define ERROR2(msg, p1, p2) printf(msg, p1, p2); fflush(stdin); |
| 55 | 56 |
