Ticket #8278: assert.patch

File assert.patch, 605 bytes (added by Eric Niebler, 10 years ago)
  • boost/assert.hpp

     
    2828
    2929#undef BOOST_ASSERT
    3030
    31 #if defined(BOOST_DISABLE_ASSERTS) || defined(NDEBUG)
     31#if defined(BOOST_DISABLE_ASSERTS)
    3232
    3333# define BOOST_ASSERT(expr) ((void)0)
    3434
     
    5757
    5858# undef BOOST_ASSERT_MSG
    5959
    60 #if defined(BOOST_DISABLE_ASSERTS) || defined(NDEBUG)
     60#if defined(BOOST_DISABLE_ASSERTS) || ( !defined(BOOST_ENABLE_ASSERT_HANDLER) && defined(NDEBUG) )
    6161
    6262  #define BOOST_ASSERT_MSG(expr, msg) ((void)0)
    6363