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