From dc95fa94c1a8bb7249034d6fd2e61f80df48b317 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 4 Jun 2008 15:40:49 +0000 Subject: Corrected a few macro definitions to make them more function-like and safe to use. --- src/trace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/trace.h') diff --git a/src/trace.h b/src/trace.h index 91e2094..e115d66 100644 --- a/src/trace.h +++ b/src/trace.h @@ -34,7 +34,7 @@ namespace Bu n++; \ break; \ } \ - } + } (void)0 template void __tracer( const char *pf, t1 &v1 ) { @@ -163,7 +163,7 @@ namespace Bu #ifdef BU_TRACE # define TRACE(args...) Bu::__tracer( __PRETTY_FUNCTION__, ##args ) #else -# define TRACE(args...) {} +# define TRACE(args...) (void)0 #endif #endif -- cgit v1.2.3