msgpack/include/msgpack/assert.hpp
Takatoshi Kondo 066d509a68 Minimall supported build without boost.
To remove boost dependency, `-DMSGPACK_USE_BOOST=OFF` for cmake.
By default, `-DMSGPACK_USE_BOOST` is `ON`.
NOTE: In order to build tests `-DMSGPACK_USE_BOOST=ON` is required.

For C++ compiler, the option `-DMSGPACK_NO_BOOST` is required to remove
boost.
2022-02-07 22:32:59 +09:00

27 lines
569 B
C++

//
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2022 KONDO Takatoshi
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MSGPACK_ASSERT_HPP
#define MSGPACK_ASSERT_HPP
#if defined(MSGPACK_NO_BOOST)
#include <cassert>
#define MSGPACK_ASSERT assert
#else // defined(MSGPACK_NO_BOOST)
#include <boost/assert.hpp>
#define MSGPACK_ASSERT BOOST_ASSERT
#endif // defined(MSGPACK_NO_BOOST)
#endif // MSGPACK_ASSERT_HPP