summaryrefslogtreecommitdiffhomepage
path: root/ir/lpp
diff options
context:
space:
mode:
authorAndreas Zwinkau <zwinkau@kit.edu>2011-09-15 13:23:39 +0200
committerAndreas Zwinkau <zwinkau@kit.edu>2011-09-15 13:23:39 +0200
commitaf8c688e70aef2fdc30b443a72be449bafe013d1 (patch)
tree4595e82f5287a299d356478ce97b13c5d306a379 /ir/lpp
parent64d303d4b2d76568d6404e2b6a1683c7e30c827e (diff)
Fix DEBUG_ONLY use
Diffstat (limited to 'ir/lpp')
-rw-r--r--ir/lpp/lpp_comm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/lpp/lpp_comm.c b/ir/lpp/lpp_comm.c
index 0a78591..6dc1094 100644
--- a/ir/lpp/lpp_comm.c
+++ b/ir/lpp/lpp_comm.c
@@ -55,7 +55,7 @@ struct _lpp_comm_t {
char *r_buf;
};
-DEBUG_ONLY(
+#ifdef DEBUG_libfirm
static inline firm_dbg_module_t *get_dbg_module(void)
{
static firm_dbg_module_t *dbg = NULL;
@@ -65,9 +65,8 @@ static inline firm_dbg_module_t *get_dbg_module(void)
return dbg;
}
-
#define dbg get_dbg_module()
-)
+#endif
/**
* Try to read some bytes but block until a certain amount is read.