Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello_message_pack
assert.hpp
00001 # /* Copyright (C) 2001 00002 # * Housemarque Oy 00003 # * http://www.housemarque.com 00004 # * 00005 # * Distributed under the Boost Software License, Version 1.0. (See 00006 # * accompanying file LICENSE_1_0.txt or copy at 00007 # * http://www.boost.org/LICENSE_1_0.txt) 00008 # */ 00009 # 00010 # /* Revised by Paul Mensonides (2002) */ 00011 # 00012 # /* See http://www.boost.org for most recent version. */ 00013 # 00014 # ifndef MSGPACK_PREPROCESSOR_DEBUG_ASSERT_HPP 00015 # define MSGPACK_PREPROCESSOR_DEBUG_ASSERT_HPP 00016 # 00017 # include <msgpack/preprocessor/config/config.hpp> 00018 # include <msgpack/preprocessor/control/expr_iif.hpp> 00019 # include <msgpack/preprocessor/control/iif.hpp> 00020 # include <msgpack/preprocessor/logical/not.hpp> 00021 # include <msgpack/preprocessor/tuple/eat.hpp> 00022 # 00023 # /* MSGPACK_PP_ASSERT */ 00024 # 00025 # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG() 00026 # define MSGPACK_PP_ASSERT MSGPACK_PP_ASSERT_D 00027 # else 00028 # define MSGPACK_PP_ASSERT(cond) MSGPACK_PP_ASSERT_D(cond) 00029 # endif 00030 # 00031 # define MSGPACK_PP_ASSERT_D(cond) MSGPACK_PP_IIF(MSGPACK_PP_NOT(cond), MSGPACK_PP_ASSERT_ERROR, MSGPACK_PP_TUPLE_EAT_1)(...) 00032 # define MSGPACK_PP_ASSERT_ERROR(x, y, z) 00033 # 00034 # /* MSGPACK_PP_ASSERT_MSG */ 00035 # 00036 # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG() 00037 # define MSGPACK_PP_ASSERT_MSG MSGPACK_PP_ASSERT_MSG_D 00038 # else 00039 # define MSGPACK_PP_ASSERT_MSG(cond, msg) MSGPACK_PP_ASSERT_MSG_D(cond, msg) 00040 # endif 00041 # 00042 # define MSGPACK_PP_ASSERT_MSG_D(cond, msg) MSGPACK_PP_EXPR_IIF(MSGPACK_PP_NOT(cond), msg) 00043 # 00044 # endif
Generated on Tue Jul 12 2022 22:51:44 by
1.7.2