Hideaki Tai / msgpack-embedded

Dependents:   hello_message_pack

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers rest_n.hpp Source File

rest_n.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_REST_N_HPP
00013 # define MSGPACK_PREPROCESSOR_SEQ_REST_N_HPP
00014 #
00015 # include <msgpack/preprocessor/arithmetic/inc.hpp>
00016 # include <msgpack/preprocessor/config/config.hpp>
00017 # include <msgpack/preprocessor/facilities/identity.hpp>
00018 # include <msgpack/preprocessor/seq/detail/split.hpp>
00019 # include <msgpack/preprocessor/tuple/elem.hpp>
00020 #
00021 # /* MSGPACK_PP_SEQ_REST_N */
00022 #
00023 # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG()
00024 #    define MSGPACK_PP_SEQ_REST_N(n, seq) MSGPACK_PP_TUPLE_ELEM(2, 1, MSGPACK_PP_SEQ_SPLIT(MSGPACK_PP_INC(n), MSGPACK_PP_IDENTITY( (nil) seq )))()
00025 # else
00026 #    define MSGPACK_PP_SEQ_REST_N(n, seq) MSGPACK_PP_SEQ_REST_N_I(n, seq)
00027 #    define MSGPACK_PP_SEQ_REST_N_I(n, seq) MSGPACK_PP_TUPLE_ELEM(2, 1, MSGPACK_PP_SEQ_SPLIT(MSGPACK_PP_INC(n), MSGPACK_PP_IDENTITY( (nil) seq )))()
00028 # endif
00029 #
00030 # endif