Files

23 lines
753 B
C++

// (C) Copyright Matt Borland 2021.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef ACTIV_BOOST_MATH_TOOLS_THROW_EXCEPTION_HPP
#define ACTIV_BOOST_MATH_TOOLS_THROW_EXCEPTION_HPP
#include <ActivBoost/math/tools/is_standalone.hpp>
#ifndef ACTIV_BOOST_MATH_STANDALONE
#include <ActivBoost/throw_exception.hpp>
#define ACTIV_BOOST_MATH_THROW_EXCEPTION(expr) Boost::throw_exception(expr);
#else // Standalone mode - use standard library facilities
#define ACTIV_BOOST_MATH_THROW_EXCEPTION(expr) throw expr;
#endif // ACTIV_BOOST_MATH_STANDALONE
#endif // ACTIV_BOOST_MATH_TOOLS_THROW_EXCEPTION_HPP