1234567891011121314151617181920212223242526272829 |
- #ifndef BOOST_MP_DETAIL_ASSERT_HPP
- #define BOOST_MP_DETAIL_ASSERT_HPP
- #include <boost/multiprecision/detail/standalone_config.hpp>
- #ifndef BOOST_MP_STANDALONE
- #include <boost/assert.hpp>
- #define BOOST_MP_ASSERT(expr) BOOST_ASSERT(expr)
- #define BOOST_MP_ASSERT_MSG(expr, msg) BOOST_ASSERT_MSG(expr, msg)
- #else
- #include <cassert>
- #define BOOST_MP_ASSERT(expr) assert(expr)
- #define BOOST_MP_ASSERT_MSG(expr, msg) assert((expr)&&(msg))
- #endif
- #endif
|