From 18f3c4b6ae908e35297f4be87e0c9bcb81cd0756 Mon Sep 17 00:00:00 2001 From: Vesa Karvonen Date: Fri, 25 Jan 2002 13:00:03 +0000 Subject: [PATCH] MWCW workarounds [SVN r12494] --- test/logical_test.cpp | 10 ++++++++++ test/preprocessor_test.cpp | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/test/logical_test.cpp b/test/logical_test.cpp index 1c8b8fe..693c252 100644 --- a/test/logical_test.cpp +++ b/test/logical_test.cpp @@ -15,25 +15,35 @@ // *** +#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406) TEST_B BOOST_PP_NOT(MACRO MACRO_ARGS(0)) == 1 TEST_E +#endif TEST_B BOOST_PP_NOT(1) == 0 TEST_E +#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406) TEST_B BOOST_PP_AND(0,MACRO MACRO_ARGS(0)) == 0 TEST_E +#endif TEST_B BOOST_PP_AND(0,1) == 0 TEST_E TEST_B BOOST_PP_AND(1,0) == 0 TEST_E TEST_B BOOST_PP_AND(1,1) == 1 TEST_E +#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406) TEST_B BOOST_PP_OR(0,MACRO MACRO_ARGS(0)) == 0 TEST_E +#endif TEST_B BOOST_PP_OR(0,1) == 1 TEST_E TEST_B BOOST_PP_OR(1,0) == 1 TEST_E TEST_B BOOST_PP_OR(1,1) == 1 TEST_E +#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406) TEST_B BOOST_PP_XOR(0,MACRO MACRO_ARGS(0)) == 0 TEST_E +#endif TEST_B BOOST_PP_XOR(0,1) == 1 TEST_E TEST_B BOOST_PP_XOR(1,0) == 1 TEST_E TEST_B BOOST_PP_XOR(1,1) == 0 TEST_E +#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406) TEST_B BOOST_PP_NOR(0,MACRO MACRO_ARGS(0)) == 1 TEST_E +#endif TEST_B BOOST_PP_NOR(0,1) == 0 TEST_E TEST_B BOOST_PP_NOR(1,0) == 0 TEST_E TEST_B BOOST_PP_NOR(1,1) == 0 TEST_E diff --git a/test/preprocessor_test.cpp b/test/preprocessor_test.cpp index 5a1c455..295a517 100644 --- a/test/preprocessor_test.cpp +++ b/test/preprocessor_test.cpp @@ -38,11 +38,15 @@ TEST_B BOOST_PP_IF(BOOST_PP_IF(1,1,1),true,false) && // *** +#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406) TEST_B BOOST_PP_CAT(BOOST_PP_IF(1,tru,fals), MACRO MACRO_ARGS(e)) TEST_E +#endif // *** +#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406) char stringize_test[2] = BOOST_PP_STRINGIZE(MACRO MACRO_ARGS(X)); +#endif // ***