aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iemnet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/iemnet.h b/iemnet.h
index ca1a971..bc04840 100644
--- a/iemnet.h
+++ b/iemnet.h
@@ -235,9 +235,13 @@ int iemnet__register(const char*name);
* \brief debug output
* \note this will only take effect if DEBUG is not undefined
*/
+#ifdef IEMNET_HAVE_DEBUG
+# undef IEMNET_HAVE_DEBUG
+#endif
#ifdef DEBUG
# undef DEBUG
# define DEBUG startpost("[%s:%d]", __FUNCTION__, __LINE__); post
+# define IEMNET_HAVE_DEBUG 1
#else
static void debug_dummy(const char *format, ...) {;}
# define DEBUG debug_dummy