messagepack implementation for embedded systems (mbed / arduino)
Dependents: hello_message_pack
split.hpp
00001 # /* ************************************************************************** 00002 # * * 00003 # * (C) Copyright Paul Mensonides 2002. 00004 # * Distributed under the Boost Software License, Version 1.0. (See 00005 # * accompanying file LICENSE_1_0.txt or copy at 00006 # * http://www.boost.org/LICENSE_1_0.txt) 00007 # * * 00008 # ************************************************************************** */ 00009 # 00010 # ifndef MSGPACK_PREPROCESSOR_DETAIL_SPLIT_HPP 00011 # define MSGPACK_PREPROCESSOR_DETAIL_SPLIT_HPP 00012 # 00013 # include <msgpack/preprocessor/config/config.hpp> 00014 # 00015 # /* MSGPACK_PP_SPLIT */ 00016 # 00017 # if MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_MWCC() 00018 # define MSGPACK_PP_SPLIT(n, im) MSGPACK_PP_SPLIT_I((n, im)) 00019 # define MSGPACK_PP_SPLIT_I(par) MSGPACK_PP_SPLIT_II ## par 00020 # define MSGPACK_PP_SPLIT_II(n, a, b) MSGPACK_PP_SPLIT_ ## n(a, b) 00021 # elif MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_MSVC() 00022 # define MSGPACK_PP_SPLIT(n, im) MSGPACK_PP_SPLIT_I(n((im))) 00023 # define MSGPACK_PP_SPLIT_I(n) MSGPACK_PP_SPLIT_ID(MSGPACK_PP_SPLIT_II_ ## n) 00024 # define MSGPACK_PP_SPLIT_II_0(s) MSGPACK_PP_SPLIT_ID(MSGPACK_PP_SPLIT_0 s) 00025 # define MSGPACK_PP_SPLIT_II_1(s) MSGPACK_PP_SPLIT_ID(MSGPACK_PP_SPLIT_1 s) 00026 # define MSGPACK_PP_SPLIT_ID(id) id 00027 # else 00028 # define MSGPACK_PP_SPLIT(n, im) MSGPACK_PP_SPLIT_I(n)(im) 00029 # define MSGPACK_PP_SPLIT_I(n) MSGPACK_PP_SPLIT_ ## n 00030 # endif 00031 # 00032 # define MSGPACK_PP_SPLIT_0(a, b) a 00033 # define MSGPACK_PP_SPLIT_1(a, b) b 00034 # 00035 # endif
Generated on Tue Jul 12 2022 22:51:46 by 1.7.2