31 #undef BOOST_ASSERT_MSG 33 #if defined(BOOST_DISABLE_ASSERTS) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && defined(NDEBUG) ) 35 # define BOOST_ASSERT(expr) ((void)0) 36 # define BOOST_ASSERT_MSG(expr, msg) ((void)0) 38 #elif defined(BOOST_ENABLE_ASSERT_HANDLER) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && !defined(NDEBUG) ) 46 void assertion_failed_msg(
char const * expr,
char const * msg,
char const *
function,
char const * file,
long line);
49 #define BOOST_ASSERT(expr) (BOOST_LIKELY(!!(expr))? ((void)0): ::boost::assertion_failed(#expr, BOOST_CURRENT_FUNCTION, __FILE__, __LINE__)) 50 #define BOOST_ASSERT_MSG(expr, msg) (BOOST_LIKELY(!!(expr))? ((void)0): ::boost::assertion_failed_msg(#expr, msg, BOOST_CURRENT_FUNCTION, __FILE__, __LINE__)) 56 # define BOOST_ASSERT(expr) assert(expr) 57 # define BOOST_ASSERT_MSG(expr, msg) assert((expr)&&(msg)) 66 #undef BOOST_VERIFY_MSG 68 #if defined(BOOST_DISABLE_ASSERTS) || ( !defined(BOOST_ENABLE_ASSERT_HANDLER) && defined(NDEBUG) ) 70 # define BOOST_VERIFY(expr) ((void)(expr)) 71 # define BOOST_VERIFY_MSG(expr, msg) ((void)(expr)) 75 # define BOOST_VERIFY(expr) BOOST_ASSERT(expr) 76 # define BOOST_VERIFY_MSG(expr, msg) BOOST_ASSERT_MSG(expr,msg) int assertion_failed(typename assert< C >::type)
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.