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
cat.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 # /* See http://www.boost.org for most recent version. */ 00011 # 00012 # ifndef MSGPACK_PREPROCESSOR_SEQ_CAT_HPP 00013 # define MSGPACK_PREPROCESSOR_SEQ_CAT_HPP 00014 # 00015 # include <msgpack/preprocessor/arithmetic/dec.hpp> 00016 # include <msgpack/preprocessor/config/config.hpp> 00017 # include <msgpack/preprocessor/control/if.hpp> 00018 # include <msgpack/preprocessor/seq/fold_left.hpp> 00019 # include <msgpack/preprocessor/seq/seq.hpp> 00020 # include <msgpack/preprocessor/seq/size.hpp> 00021 # include <msgpack/preprocessor/tuple/eat.hpp> 00022 # 00023 # /* MSGPACK_PP_SEQ_CAT */ 00024 # 00025 # define MSGPACK_PP_SEQ_CAT(seq) \ 00026 MSGPACK_PP_IF( \ 00027 MSGPACK_PP_DEC(MSGPACK_PP_SEQ_SIZE(seq)), \ 00028 MSGPACK_PP_SEQ_CAT_I, \ 00029 MSGPACK_PP_SEQ_HEAD \ 00030 )(seq) \ 00031 /**/ 00032 # define MSGPACK_PP_SEQ_CAT_I(seq) MSGPACK_PP_SEQ_FOLD_LEFT(MSGPACK_PP_SEQ_CAT_O, MSGPACK_PP_SEQ_HEAD(seq), MSGPACK_PP_SEQ_TAIL(seq)) 00033 # 00034 # define MSGPACK_PP_SEQ_CAT_O(s, st, elem) MSGPACK_PP_SEQ_CAT_O_I(st, elem) 00035 # define MSGPACK_PP_SEQ_CAT_O_I(a, b) a ## b 00036 # 00037 # /* MSGPACK_PP_SEQ_CAT_S */ 00038 # 00039 # define MSGPACK_PP_SEQ_CAT_S(s, seq) \ 00040 MSGPACK_PP_IF( \ 00041 MSGPACK_PP_DEC(MSGPACK_PP_SEQ_SIZE(seq)), \ 00042 MSGPACK_PP_SEQ_CAT_S_I_A, \ 00043 MSGPACK_PP_SEQ_CAT_S_I_B \ 00044 )(s, seq) \ 00045 /**/ 00046 # define MSGPACK_PP_SEQ_CAT_S_I_A(s, seq) MSGPACK_PP_SEQ_FOLD_LEFT_ ## s(MSGPACK_PP_SEQ_CAT_O, MSGPACK_PP_SEQ_HEAD(seq), MSGPACK_PP_SEQ_TAIL(seq)) 00047 # define MSGPACK_PP_SEQ_CAT_S_I_B(s, seq) MSGPACK_PP_SEQ_HEAD(seq) 00048 # 00049 # endif
Generated on Tue Jul 12 2022 22:51:44 by
1.7.2