aboutsummaryrefslogtreecommitdiff
path: root/src/unit
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/unit
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 '')
-rw-r--r--src/unitsuite.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unitsuite.h b/src/unitsuite.h
index d281e6a..d27e322 100644
--- a/src/unitsuite.h
+++ b/src/unitsuite.h
@@ -105,7 +105,7 @@ namespace Bu
105#define unitTest( tst ) if( !(tst) ) \ 105#define unitTest( tst ) if( !(tst) ) \
106{ \ 106{ \
107 throw Bu::UnitSuite::Failed( #tst, __FILE__, __LINE__ ); \ 107 throw Bu::UnitSuite::Failed( #tst, __FILE__, __LINE__ ); \
108} 108} else (void)0
109#define unitFailed( msg ) throw Bu::UnitSuite::Failed(msg, __FILE__, __LINE__); 109#define unitFailed( msg ) throw Bu::UnitSuite::Failed(msg, __FILE__, __LINE__)
110 110
111#endif 111#endif