diff options
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); |