forked from boostorg/assert
Introduced BOOST_ASSERT_HANDLER_IS_NORETURN to make sure short-circuit work (#40)
* Introduced BOOST_ENABLE_ASSERT_HANDLER_NORETURN to make sure short-circuit work * Use BOOST_ASSERT_HANDLER_IS_NORETURN
This commit is contained in:
@@ -46,7 +46,13 @@
|
|||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
#if defined(BOOST_ASSERT_HANDLER_IS_NORETURN)
|
||||||
|
BOOST_NORETURN
|
||||||
|
#endif
|
||||||
void assertion_failed(char const * expr, char const * function, char const * file, long line); // user defined
|
void assertion_failed(char const * expr, char const * function, char const * file, long line); // user defined
|
||||||
|
#if defined(BOOST_ASSERT_HANDLER_IS_NORETURN)
|
||||||
|
BOOST_NORETURN
|
||||||
|
#endif
|
||||||
void assertion_failed_msg(char const * expr, char const * msg, char const * function, char const * file, long line); // user defined
|
void assertion_failed_msg(char const * expr, char const * msg, char const * function, char const * file, long line); // user defined
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user