diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2010-03-25 11:36:27 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2010-03-25 11:36:27 +0000 |
commit | 78bf82a8454213f38467fa24add174295fbeec69 (patch) | |
tree | 706ae88e55b28fca0a91d8f5c151fe658aca6c1e /iemnet.h | |
parent | 2295ee986a41d3066e52080fa45a0ab567fab642 (diff) |
DEBUG mechanism
svn path=/trunk/externals/iem/iemnet/; revision=13270
Diffstat (limited to 'iemnet.h')
-rw-r--r-- | iemnet.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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_ */ |