]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/multiprecision/detail/assert.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / multiprecision / detail / assert.hpp
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)
5 //
6 // We deliberately use assert in here:
7 //
8 // boost-no-inspect
9
10 #ifndef BOOST_MP_TOOLS_ASSERT_HPP
11 #define BOOST_MP_TOOLS_ASSERT_HPP
12
13 #include <boost/multiprecision/detail/standalone_config.hpp>
14
15 #ifndef BOOST_MP_STANDALONE
16
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)
20
21 #else // Standalone mode - use cassert
22
23 #include <cassert>
24 #define BOOST_MP_ASSERT(expr) assert(expr)
25 #define BOOST_MP_ASSERT_MSG(expr, msg) assert((expr)&&(msg))
26
27 #endif
28
29 #endif // BOOST_MATH_TOOLS_ASSERT_HPP