projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6f8672
)
common: add simple DBG_ENABLED() macros
author
Brian Norris
<banorris@uci.edu>
Fri, 27 Apr 2012 06:42:12 +0000
(23:42 -0700)
committer
Brian Norris
<banorris@uci.edu>
Fri, 27 Apr 2012 06:42:37 +0000
(23:42 -0700)
common.h
patch
|
blob
|
history
diff --git
a/common.h
b/common.h
index 0da662aa69e80fddc5f9c383c1656a43969e6d4d..d4823dbfa5895b13a5f960d3f4ff3c9f5d7c3216 100644
(file)
--- 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);