From a9421cbe6bad6c9578431873aaea718f90040cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Fri, 20 Aug 2010 16:20:33 +0000 Subject: in DEBUG mode, define IEMNET_HAVE_DEBUG svn path=/trunk/externals/iem/iemnet/; revision=13870 --- iemnet.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.1