Ticket #6450: throw_exception.patch

File throw_exception.patch, 793 bytes (added by Antony Polukhin, 11 years ago)
  • throw_exception.hpp

     
    4236#if !defined( BOOST_EXCEPTION_DISABLE )
    4337# include <boost/exception/exception.hpp>
    4438# include <boost/current_function.hpp>
    45 # define BOOST_THROW_EXCEPTION(x) ::boost::exception_detail::throw_exception_(x,BOOST_CURRENT_FUNCTION,__FILE__,__LINE__)
     39# ifndef BOOST_THROW_EXCEPTION_CURRENT_FUNCTION
     40#     define BOOST_THROW_EXCEPTION_CURRENT_FUNCTION BOOST_CURRENT_FUNCTION
     41# endif
     42# define BOOST_THROW_EXCEPTION(x) ::boost::exception_detail::throw_exception_(x,BOOST_THROW_EXCEPTION_CURRENT_FUNCTION,__FILE__,__LINE__)
    4643#else
    4744# define BOOST_THROW_EXCEPTION(x) ::boost::throw_exception(x)
    4845#endif