summaryrefslogtreecommitdiffstats
path: root/runtime/debug.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-22 11:41:23 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-22 11:41:23 +0200
commit163acd9d9fd5e01975e99ad26af8a9c8097b3260 (patch)
treed5901dfca0f2e38ddcf8b973086343ab23a866a1 /runtime/debug.h
parentbee73d2d93105b187171a1cc51ecf4125b39b65d (diff)
parent82d0b37dc86385cd239b03da1e57eaba88720589 (diff)
downloadrsyslog-163acd9d9fd5e01975e99ad26af8a9c8097b3260.tar.gz
rsyslog-163acd9d9fd5e01975e99ad26af8a9c8097b3260.tar.bz2
rsyslog-163acd9d9fd5e01975e99ad26af8a9c8097b3260.zip
Merge branch 'v6-beta' into v6-stable
Diffstat (limited to 'runtime/debug.h')
-rw-r--r--runtime/debug.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/debug.h b/runtime/debug.h
index 26672c3e..5bd26bd8 100644
--- a/runtime/debug.h
+++ b/runtime/debug.h
@@ -106,8 +106,13 @@ void dbgPrintAllDebugInfo(void);
void *dbgmalloc(size_t size);
/* macros */
-#define DBGPRINTF(...) if(Debug) { dbgprintf(__VA_ARGS__); }
-#define DBGOPRINT(...) if(Debug) { dbgoprint(__VA_ARGS__); }
+#ifdef DEBUGLESS
+# define DBGPRINTF(...) {}
+# define DBGOPRINT(...) {}
+#else
+# define DBGPRINTF(...) if(Debug) { dbgprintf(__VA_ARGS__); }
+# define DBGOPRINT(...) if(Debug) { dbgoprint(__VA_ARGS__); }
+#endif
#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);