Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-27 08:50:10

0001 //  (C) Copyright Matt Borland 2021 - 2023.
0002 //  Use, modification and distribution are subject to the
0003 //  Boost Software License, Version 1.0. (See accompanying file
0004 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 //
0006 // We deliberately use assert in here:
0007 //
0008 // boost-no-inspect
0009 
0010 #ifndef BOOST_NUMERIC_ODEINT_TOOLS_ASSERT_HPP
0011 #define BOOST_NUMERIC_ODEINT_TOOLS_ASSERT_HPP
0012 
0013 #include <boost/numeric/odeint/tools/is_standalone.hpp>
0014 
0015 #ifndef BOOST_NUMERIC_ODEINT_STANDALONE
0016 
0017 #include <boost/assert.hpp>
0018 
0019 #define BOOST_NUMERIC_ODEINT_ASSERT(expr) BOOST_ASSERT(expr)
0020 #define BOOST_NUMERIC_ODEINT_ASSERT_MSG(expr, msg) BOOST_ASSERT_MSG(expr, msg)
0021 
0022 #else // Standalone mode so we use cassert
0023 
0024 #include <cassert>
0025 #define BOOST_NUMERIC_ODEINT_ASSERT(expr) assert(expr)
0026 #define BOOST_NUMERIC_ODEINT_ASSERT_MSG(expr, msg) assert((expr)&&(msg))
0027 
0028 #endif
0029 
0030 #endif //BOOST_NUMERIC_ODEINT_TOOLS_ASSERT_HPP