123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #ifndef BOOST_QVM_THROW_EXCEPTION
- # define BOOST_QVM_THROW_EXCEPTION ::boost::qvm::throw_exception
- # include <exception>
- # ifndef BOOST_QVM_NO_EXCEPTIONS
- # if defined(__clang__) && !defined(__ibmxl__)
- # if !__has_feature(cxx_exceptions)
- # define BOOST_QVM_NO_EXCEPTIONS
- # endif
- # elif defined(__DMC__)
- # if !defined(_CPPUNWIND)
- # define BOOST_QVM_NO_EXCEPTIONS
- # endif
- # elif defined(__GNUC__) && !defined(__ibmxl__)
- # if !defined(__EXCEPTIONS)
- # define BOOST_QVM_NO_EXCEPTIONS
- # endif
- # elif defined(__KCC)
- # if !defined(_EXCEPTIONS)
- # define BOOST_QVM_NO_EXCEPTIONS
- # endif
- # elif defined(__CODEGEARC__)
- # if !defined(_CPPUNWIND) && !defined(__EXCEPTIONS)
- # define BOOST_QVM_NO_EXCEPTIONS
- # endif
- # elif defined(__BORLANDC__)
- # if !defined(_CPPUNWIND) && !defined(__EXCEPTIONS)
- # define BOOST_QVM_NO_EXCEPTIONS
- # endif
- # elif defined(__MWERKS__)
- # if !__option(exceptions)
- # define BOOST_QVM_NO_EXCEPTIONS
- # endif
- # elif defined(__IBMCPP__) && defined(__COMPILER_VER__) && defined(__MVS__)
- # if !defined(_CPPUNWIND) && !defined(__EXCEPTIONS)
- # define BOOST_QVM_NO_EXCEPTIONS
- # endif
- # elif defined(__ibmxl__)
- # if !__has_feature(cxx_exceptions)
- # define BOOST_QVM_NO_EXCEPTIONS
- # endif
- # elif defined(_MSC_VER)
-
-
- # if !defined(_CPPUNWIND)
- # define BOOST_QVM_NO_EXCEPTIONS
- # endif
- # endif
- # endif
- # ifdef BOOST_NORETURN
- # define BOOST_QVM_NORETURN BOOST_NORETURN
- # else
- # if defined(_MSC_VER)
- # define BOOST_QVM_NORETURN __declspec(noreturn)
- # elif defined(__GNUC__)
- # define BOOST_QVM_NORETURN __attribute__ ((__noreturn__))
- # elif defined(__has_attribute) && defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x5130)
- # if __has_attribute(noreturn)
- # define BOOST_QVM_NORETURN [[noreturn]]
- # endif
- # elif defined(__has_cpp_attribute)
- # if __has_cpp_attribute(noreturn)
- # define BOOST_QVM_NORETURN [[noreturn]]
- # endif
- # endif
- # endif
- # if !defined(BOOST_QVM_NORETURN)
- # define BOOST_QVM_NORETURN
- # endif
- # ifdef BOOST_QVM_NO_EXCEPTIONS
- namespace boost
- {
- BOOST_QVM_NORETURN void throw_exception( std::exception const & );
- }
- namespace boost { namespace qvm {
- template <class T>
- BOOST_QVM_NORETURN void throw_exception( T const & e )
- {
- ::boost::throw_exception(e);
- }
- } }
- # else
- namespace boost { namespace qvm {
- template <class T>
- BOOST_QVM_NORETURN void throw_exception( T const & e )
- {
- throw e;
- }
- } }
- # endif
- #endif
|