From 78bf82a8454213f38467fa24add174295fbeec69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 25 Mar 2010 11:36:27 +0000 Subject: DEBUG mechanism svn path=/trunk/externals/iem/iemnet/; revision=13270 --- iemnet.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'iemnet.h') 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_ */ -- cgit v1.2.1