From 3279399fe32f2ecc5bdd3b80c5792212e308d797 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Mon, 24 Jan 2011 20:15:36 +0000 Subject: [PATCH] Remove BOOST_ENABLE_ASSERT_MSG_HANDLER; use BOOST_ENABLE_ASSERT_HANDLER in its stead [SVN r68423] --- assert.html | 4 ++-- assert_test.cpp | 1 - include/boost/assert.hpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/assert.html b/assert.html index aa3cbf2..5f3f6e7 100644 --- a/assert.html +++ b/assert.html @@ -66,7 +66,7 @@

BOOST_ASSERT_MSG(expr, msg) is equivalent to ((void)0) if BOOST_DISABLE_ASSERTS or NDEBUG are defined or expr evaluates to true. If those - macros and BOOST_ENABLE_ASSERT_MSG_HANDLER are not + macros and BOOST_ENABLE_ASSERT_HANDLER are not defined, and expr evaluates to false, an error message that includes #expr, msg, BOOST_CURRENT_FUNCTION, __FILE__, and __LINE__ is sent to output stream @@ -77,7 +77,7 @@ may produce easier to understand output if messages go to a different stream, such as std::cout. Users may define BOOST_ASSERT_MSG_OSTREAM before including <boost/assert.hpp> to specify a different output stream. 

-

If the macro BOOST_ENABLE_ASSERT_MSG_HANDLER is defined when <boost/assert.hpp> +

If the macro BOOST_ENABLE_ASSERT_HANDLER is defined when <boost/assert.hpp> is included, instead of sending a error message to an output stream, this expression is evaluated

diff --git a/assert_test.cpp b/assert_test.cpp index a0e1e04..26051ac 100644 --- a/assert_test.cpp +++ b/assert_test.cpp @@ -66,7 +66,6 @@ void test_disabled() #undef BOOST_DISABLE_ASSERTS #define BOOST_ENABLE_ASSERT_HANDLER -#define BOOST_ENABLE_ASSERT_MSG_HANDLER #include #include #include diff --git a/include/boost/assert.hpp b/include/boost/assert.hpp index a04e2e4..174f084 100644 --- a/include/boost/assert.hpp +++ b/include/boost/assert.hpp @@ -61,7 +61,7 @@ namespace boost #define BOOST_ASSERT_MSG(expr, msg) ((void)0) -#elif defined(BOOST_ENABLE_ASSERT_MSG_HANDLER) +#elif defined(BOOST_ENABLE_ASSERT_HANDLER) #include