Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:48:28

0001 //  (C) Copyright Matt Borland 2021.
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_MP_DETAIL_ASSERT_HPP
0011 #define BOOST_MP_DETAIL_ASSERT_HPP
0012 
0013 #include <boost/multiprecision/detail/standalone_config.hpp>
0014 
0015 #ifndef BOOST_MP_STANDALONE
0016 
0017 #include <boost/assert.hpp>
0018 #define BOOST_MP_ASSERT(expr) BOOST_ASSERT(expr)
0019 #define BOOST_MP_ASSERT_MSG(expr, msg) BOOST_ASSERT_MSG(expr, msg)
0020 
0021 #else // Standalone mode - use cassert
0022 
0023 #include <cassert>
0024 #define BOOST_MP_ASSERT(expr) assert(expr)
0025 #define BOOST_MP_ASSERT_MSG(expr, msg) assert((expr)&&(msg))
0026 
0027 #endif
0028 
0029 #endif // BOOST_MP_DETAIL_ASSERT_HPP