From 10c39014e897d43e118e2ddd4f2c90b7de7ec517 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Fri, 12 Jul 2002 04:59:58 +0000 Subject: Include/cppunit/config/Portability. include/cppunit/config/Portability.h: If the compiler does not support namespace (CPPUNIT_HAVE_NAMESPACES=0), define CPPUNIT_NO_STD_NAMESPACE and CPPUNIT_NO_NAMESPACE. If CPPUNIT_NO_STD_NAMESPACE is defined, then CppUnit assumes that STL are in the global namespace. If CPPUNIT_NO_NAMESPACE is defined, then CppUnit classes are placed in the global namespace instead of the CppUnit namespace. * include/cppunit/config/config-bcb5.h: * include/cppunit/config/config-msvc6.h: added definition of macro CPPUNIT_HAVE_NAMESPACES. * include/cppunit/tools/StringTools.h: use CPPUNIT_WRAP_COLUMN as default parameter value for wrap(). * include/cppunit/*/*.h: * src/cppunit/*.cpp: changed all CppUnit namespace declaration to use macros CPPUNIT_NS_BEGIN and CPPUNIT_NS_END. Also, changed reference to CppUnit namespace (essentially in macros) using CPPUNIT_NS macro. --- src/cppunit/TestFailure.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/cppunit/TestFailure.cpp') diff --git a/src/cppunit/TestFailure.cpp b/src/cppunit/TestFailure.cpp index 22e0ee9..e31e138 100644 --- a/src/cppunit/TestFailure.cpp +++ b/src/cppunit/TestFailure.cpp @@ -2,7 +2,8 @@ #include #include -namespace CppUnit { +CPPUNIT_NS_BEGIN + /// Constructs a TestFailure with the given test and exception. TestFailure::TestFailure( Test *failedTest, @@ -66,4 +67,5 @@ TestFailure::clone() const return new TestFailure( m_failedTest, m_thrownException->clone(), m_isError ); } -} // namespace CppUnit + +CPPUNIT_NS_END -- cgit v1.2.1