aboutsummaryrefslogtreecommitdiff
path: root/iemnet.h
diff options
context:
space:
mode:
Diffstat (limited to 'iemnet.h')
-rw-r--r--iemnet.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/iemnet.h b/iemnet.h
index 4388583..528b800 100644
--- a/iemnet.h
+++ b/iemnet.h
@@ -235,6 +235,11 @@ int iemnet__register(const char*name);
* \brief debug output
* \note this will only take effect if DEBUG is not undefined
*/
+
+#ifdef DEBUG
+# define IEMNET_HAVE_DEBUG 1
+#endif
+
#ifdef IEMNET_HAVE_DEBUG
# undef IEMNET_HAVE_DEBUG
#endif
@@ -245,7 +250,6 @@ void iemnet_debuglevel(void*,t_float);
#ifdef DEBUG
# undef DEBUG
# define DEBUG if(debuglevel&DEBUGLEVEL)startpost("[%s:%d]", __FUNCTION__, __LINE__); if(debuglevel&DEBUGLEVEL)post
-# define IEMNET_HAVE_DEBUG 1
#else
static void debug_dummy(const char *format, ...) {;}
# define DEBUG debug_dummy