aboutsummaryrefslogtreecommitdiff
path: root/iemnet.h
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-03-25 11:36:27 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-03-25 11:36:27 +0000
commit78bf82a8454213f38467fa24add174295fbeec69 (patch)
tree706ae88e55b28fca0a91d8f5c151fe658aca6c1e /iemnet.h
parent2295ee986a41d3066e52080fa45a0ab567fab642 (diff)
DEBUG mechanism
svn path=/trunk/externals/iem/iemnet/; revision=13270
Diffstat (limited to 'iemnet.h')
-rw-r--r--iemnet.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/iemnet.h b/iemnet.h
index 955b6ca..fae3ad6 100644
--- a/iemnet.h
+++ b/iemnet.h
@@ -109,4 +109,17 @@ void iemnet__receiver_destroy(t_iemnet_receiver*);
#endif
+
+#ifdef DEBUG
+# undef DEBUG
+# define DEBUG startpost("[%s:%d]", __FUNCTION__, __LINE__); post
+#else
+static void debug_dummy(const char *format, ...) {;}
+# define DEBUG debug_dummy
+#endif
+
+
+
+
+
#endif /* INCLUDE_IEMNET_H_ */