From 3801569c178bea693d4638de67cff18be78012ea Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 26 Apr 2012 23:42:12 -0700 Subject: [PATCH] common: add simple DBG_ENABLED() macros --- common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common.h b/common.h index 0da662a..d4823db 100644 --- a/common.h +++ b/common.h @@ -8,9 +8,11 @@ #ifdef CONFIG_DEBUG #define DEBUG(fmt, ...) do { printf("*** %25s(): line %-4d *** " fmt, __func__, __LINE__, ##__VA_ARGS__); } while (0) #define DBG() DEBUG("\n"); +#define DBG_ENABLED() (1) #else #define DEBUG(fmt, ...) #define DBG() +#define DBG_ENABLED() (0) #endif void * myMalloc(size_t size); -- 2.34.1