diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-11-18 11:40:23 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-11-18 11:40:23 +0100 |
commit | a5417f16044d7d56dbceeea09e25ba3e8c47cc01 (patch) | |
tree | de086d9f0baa496f3743b39e4c49b05edab1a303 /runtime/debug.h | |
parent | ba201a941435bc5fec2c333155e1a8e16c4a9c05 (diff) | |
parent | 704a1145d64532df36624a3c9850b0c86f38f76f (diff) | |
download | rsyslog-a5417f16044d7d56dbceeea09e25ba3e8c47cc01.tar.gz rsyslog-a5417f16044d7d56dbceeea09e25ba3e8c47cc01.tar.xz rsyslog-a5417f16044d7d56dbceeea09e25ba3e8c47cc01.zip |
Merge branch 'nextmaster'
Diffstat (limited to 'runtime/debug.h')
-rw-r--r-- | runtime/debug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/debug.h b/runtime/debug.h index d9d576b5..59b3e776 100644 --- a/runtime/debug.h +++ b/runtime/debug.h @@ -100,6 +100,8 @@ void dbgSetThrdName(uchar *pszName); void dbgPrintAllDebugInfo(void); /* macros */ +#define DBGPRINTF(...) if(Debug) { dbgprintf(__VA_ARGS__); } +#define DBGOPRINT(...) if(Debug) { dbgoprint(__VA_ARGS__); } #ifdef RTINST # define BEGINfunc static dbgFuncDB_t *pdbgFuncDB; int dbgCALLStaCK_POP_POINT = dbgEntrFunc(&pdbgFuncDB, __FILE__, __func__, __LINE__); # define ENDfunc dbgExitFunc(pdbgFuncDB, dbgCALLStaCK_POP_POINT, RS_RET_NO_IRET); |