123456789101112131415161718192021222324252627282930 |
- #ifndef BOOST_NUMERIC_ODEINT_TOOLS_ASSERT_HPP
- #define BOOST_NUMERIC_ODEINT_TOOLS_ASSERT_HPP
- #include <boost/numeric/odeint/tools/is_standalone.hpp>
- #ifndef BOOST_NUMERIC_ODEINT_STANDALONE
- #include <boost/assert.hpp>
- #define BOOST_NUMERIC_ODEINT_ASSERT(expr) BOOST_ASSERT(expr)
- #define BOOST_NUMERIC_ODEINT_ASSERT_MSG(expr, msg) BOOST_ASSERT_MSG(expr, msg)
- #else
- #include <cassert>
- #define BOOST_NUMERIC_ODEINT_ASSERT(expr) assert(expr)
- #define BOOST_NUMERIC_ODEINT_ASSERT_MSG(expr, msg) assert((expr)&&(msg))
- #endif
- #endif
|