mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-21 00:11:52 +02:00

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.
27 lines
569 B
C++
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
|