1 // (C) Copyright Matt Borland 2021.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 // We deliberately use assert in here:
10 #ifndef BOOST_MP_TOOLS_ASSERT_HPP
11 #define BOOST_MP_TOOLS_ASSERT_HPP
13 #include <boost/multiprecision/detail/standalone_config.hpp>
15 #ifndef BOOST_MP_STANDALONE
17 #include <boost/assert.hpp>
18 #define BOOST_MP_ASSERT(expr) BOOST_ASSERT(expr)
19 #define BOOST_MP_ASSERT_MSG(expr, msg) BOOST_ASSERT_MSG(expr, msg)
21 #else // Standalone mode - use cassert
24 #define BOOST_MP_ASSERT(expr) assert(expr)
25 #define BOOST_MP_ASSERT_MSG(expr, msg) assert((expr)&&(msg))
29 #endif // BOOST_MATH_TOOLS_ASSERT_HPP