diff options
author | Steve M. Robbins <smr@sumost.ca> | 2001-06-02 21:29:52 +0000 |
---|---|---|
committer | Steve M. Robbins <smr@sumost.ca> | 2001-06-02 21:29:52 +0000 |
commit | cdbca4119defbc5f9698906633eec05b5dc8272a (patch) | |
tree | 6f0fc91b8cb7cc7b361966ffc8ab2e401e1e4c6e /include/cppunit/extensions/HelperMacros.h | |
parent | 99f54c0f4b53debc49f2081ce01158b2ed200c30 (diff) | |
download | cppunit-cdbca4119defbc5f9698906633eec05b5dc8272a.tar.gz |
Change to templatized TestAssert::assertEquals() and the new CPPUNIT_ASSERT* macros
Diffstat (limited to 'include/cppunit/extensions/HelperMacros.h')
-rw-r--r-- | include/cppunit/extensions/HelperMacros.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/cppunit/extensions/HelperMacros.h b/include/cppunit/extensions/HelperMacros.h index 12defe8..17784ea 100644 --- a/include/cppunit/extensions/HelperMacros.h +++ b/include/cppunit/extensions/HelperMacros.h @@ -7,6 +7,7 @@ #define CPPUNIT_EXTENSIONS_HELPERMACROS_H #include <string> +#include <cppunit/config.h> #include <cppunit/extensions/AutoRegisterSuite.h> #include <cppunit/extensions/TestSuiteBuilder.h> @@ -17,13 +18,11 @@ // defined, otherwise it is extracted from the macro parameter // // This macro is for cppunit internal and should not be use otherwise. -#ifdef CPPUNIT_USE_TYPEINFO -#define __CPPUNIT_SUITE_CTOR_ARGS( ATestCaseType ) - -#else // CPPUNIT_USE_TYPEINFO -#define __CPPUNIT_SUITE_CTOR_ARGS( ATestCaseType ) (std::string(#ATestCaseType)) - -#endif // CPPUNIT_USE_TYPEINFO +#if CPPUNIT_USE_TYPEINFO +# define __CPPUNIT_SUITE_CTOR_ARGS( ATestCaseType ) +#else +# define __CPPUNIT_SUITE_CTOR_ARGS( ATestCaseType ) (std::string(#ATestCaseType)) +#endif /** \file |