MessagePack for C++
assert.hpp
Go to the documentation of this file.
1 //
2 // MessagePack for C++ static resolution routine
3 //
4 // Copyright (C) 2022 KONDO Takatoshi
5 //
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef MSGPACK_ASSERT_HPP
12 #define MSGPACK_ASSERT_HPP
13 
14 #if defined(MSGPACK_NO_BOOST)
15 
16 #include <cassert>
17 #define MSGPACK_ASSERT assert
18 
19 #else // defined(MSGPACK_NO_BOOST)
20 
21 #include <boost/assert.hpp>
22 #define MSGPACK_ASSERT BOOST_ASSERT
23 
24 #endif // defined(MSGPACK_NO_BOOST)
25 
26 #endif // MSGPACK_ASSERT_HPP