diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-06-04 15:40:49 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-06-04 15:40:49 +0000 |
commit | dc95fa94c1a8bb7249034d6fd2e61f80df48b317 (patch) | |
tree | b3482bc7122c18a037f3b7b38cc8270a3c0d8eb9 /src/unit | |
parent | b84120127c21e6be693f554d7f170b73faacc09d (diff) | |
download | libbu++-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.h | 4 |
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 |