From d53e7e24db10e640ddceca0030d84a5dde7b7d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 11 Oct 2010 12:03:37 +0000 Subject: these debug things svn path=/trunk/externals/iem/iemnet/; revision=14215 --- iemnet.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1