aboutsummaryrefslogtreecommitdiff
path: root/src/trace.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-06-04 15:40:49 +0000
committerMike Buland <eichlan@xagasoft.com>2008-06-04 15:40:49 +0000
commitdc95fa94c1a8bb7249034d6fd2e61f80df48b317 (patch)
treeb3482bc7122c18a037f3b7b38cc8270a3c0d8eb9 /src/trace.h
parentb84120127c21e6be693f554d7f170b73faacc09d (diff)
downloadlibbu++-dc95fa94c1a8bb7249034d6fd2e61f80df48b317.tar.gz
libbu++-dc95fa94c1a8bb7249034d6fd2e61f80df48b317.tar.bz2
libbu++-dc95fa94c1a8bb7249034d6fd2e61f80df48b317.tar.xz
libbu++-dc95fa94c1a8bb7249034d6fd2e61f80df48b317.zip
Corrected a few macro definitions to make them more function-like and safe to
use.
Diffstat (limited to 'src/trace.h')
-rw-r--r--src/trace.h4
1 files changed, 2 insertions, 2 deletions
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
34 n++; \ 34 n++; \
35 break; \ 35 break; \
36 } \ 36 } \
37 } 37 } (void)0
38 38
39 template<typename t1> void __tracer( const char *pf, t1 &v1 ) 39 template<typename t1> void __tracer( const char *pf, t1 &v1 )
40 { 40 {
@@ -163,7 +163,7 @@ namespace Bu
163#ifdef BU_TRACE 163#ifdef BU_TRACE
164# define TRACE(args...) Bu::__tracer( __PRETTY_FUNCTION__, ##args ) 164# define TRACE(args...) Bu::__tracer( __PRETTY_FUNCTION__, ##args )
165#else 165#else
166# define TRACE(args...) {} 166# define TRACE(args...) (void)0
167#endif 167#endif
168 168
169#endif 169#endif