messagepack implementation for embedded systems (mbed / arduino)

Dependents:   hello_message_pack

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers replace.hpp Source File

replace.hpp

00001 # /* **************************************************************************
00002 #  *                                                                          *
00003 #  *     (C) Copyright Edward Diener 2013.
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_TUPLE_REPLACE_HPP
00013 # define MSGPACK_PREPROCESSOR_TUPLE_REPLACE_HPP
00014 #
00015 # include <msgpack/preprocessor/config/config.hpp>
00016 #
00017 # if MSGPACK_PP_VARIADICS
00018 #
00019 # include <msgpack/preprocessor/array/replace.hpp>
00020 # include <msgpack/preprocessor/array/to_tuple.hpp>
00021 # include <msgpack/preprocessor/tuple/to_array.hpp>
00022 #
00023 # /* MSGPACK_PP_TUPLE_REPLACE */
00024 #
00025 # define MSGPACK_PP_TUPLE_REPLACE(tuple, i, elem) \
00026     MSGPACK_PP_ARRAY_TO_TUPLE(MSGPACK_PP_ARRAY_REPLACE(MSGPACK_PP_TUPLE_TO_ARRAY(tuple), i, elem)) \
00027 /**/
00028 #
00029 # /* MSGPACK_PP_TUPLE_REPLACE_D */
00030 #
00031 # define MSGPACK_PP_TUPLE_REPLACE_D(d, tuple, i, elem) \
00032     MSGPACK_PP_ARRAY_TO_TUPLE(MSGPACK_PP_ARRAY_REPLACE_D(d, MSGPACK_PP_TUPLE_TO_ARRAY(tuple), i, elem)) \
00033 /**/
00034 #
00035 # endif // MSGPACK_PP_VARIADICS
00036 #
00037 # endif // MSGPACK_PREPROCESSOR_TUPLE_REPLACE_HPP