aboutsummaryrefslogtreecommitdiff
path: root/iemnet.h
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-08-20 16:20:33 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-08-20 16:20:33 +0000
commita9421cbe6bad6c9578431873aaea718f90040cd5 (patch)
tree01866a73353ed7806ac9c3d40f2cee14efb3800b /iemnet.h
parent8bc57749db19362f49c3cf3a8fafc1f3e5552385 (diff)
in DEBUG mode, define IEMNET_HAVE_DEBUG
svn path=/trunk/externals/iem/iemnet/; revision=13870
Diffstat (limited to 'iemnet.h')
-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