mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
Evaluate expression when BOOST_NO_EXCEPTIONS is defined
This commit is contained in:
@ -220,8 +220,7 @@ If `BOOST_NO_EXCEPTIONS` is *not* defined and if `expr` throws an exception,
|
|||||||
increases the error count and outputs a message containing the expression
|
increases the error count and outputs a message containing the expression
|
||||||
and (if possible) the exception message.
|
and (if possible) the exception message.
|
||||||
|
|
||||||
If `BOOST_NO_EXCEPTIONS` is defined, this macro expands to nothing and `expr`
|
If `BOOST_NO_EXCEPTIONS` is defined, `expr` is evaluated.
|
||||||
is not evaluated.
|
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
@ -494,7 +494,7 @@ inline int report_errors()
|
|||||||
}
|
}
|
||||||
//
|
//
|
||||||
#else
|
#else
|
||||||
# define BOOST_TEST_NO_THROW(EXPR)
|
# define BOOST_TEST_NO_THROW(EXPR) { EXPR; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // #ifndef BOOST_CORE_LIGHTWEIGHT_TEST_HPP
|
#endif // #ifndef BOOST_CORE_LIGHTWEIGHT_TEST_HPP
|
||||||
|
Reference in New Issue
Block a user