diff options
Diffstat (limited to 'third_party/msgpack/include/msgpack/preprocessor/seq/seq.hpp')
-rw-r--r-- | third_party/msgpack/include/msgpack/preprocessor/seq/seq.hpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/third_party/msgpack/include/msgpack/preprocessor/seq/seq.hpp b/third_party/msgpack/include/msgpack/preprocessor/seq/seq.hpp new file mode 100644 index 0000000000..c789c2cc03 --- /dev/null +++ b/third_party/msgpack/include/msgpack/preprocessor/seq/seq.hpp @@ -0,0 +1,44 @@ +# /* ************************************************************************** +# * * +# * (C) Copyright Paul Mensonides 2002. +# * Distributed under the Boost Software License, Version 1.0. (See +# * accompanying file LICENSE_1_0.txt or copy at +# * http://www.boost.org/LICENSE_1_0.txt) +# * * +# ************************************************************************** */ +# +# /* See http://www.boost.org for most recent version. */ +# +# ifndef MSGPACK_PREPROCESSOR_SEQ_SEQ_HPP +# define MSGPACK_PREPROCESSOR_SEQ_SEQ_HPP +# +# include <msgpack/preprocessor/config/config.hpp> +# include <msgpack/preprocessor/seq/elem.hpp> +# +# /* MSGPACK_PP_SEQ_HEAD */ +# +# define MSGPACK_PP_SEQ_HEAD(seq) MSGPACK_PP_SEQ_ELEM(0, seq) +# +# /* MSGPACK_PP_SEQ_TAIL */ +# +# if MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_MWCC() +# define MSGPACK_PP_SEQ_TAIL(seq) MSGPACK_PP_SEQ_TAIL_1((seq)) +# define MSGPACK_PP_SEQ_TAIL_1(par) MSGPACK_PP_SEQ_TAIL_2 ## par +# define MSGPACK_PP_SEQ_TAIL_2(seq) MSGPACK_PP_SEQ_TAIL_I ## seq +# elif MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_MSVC() +# define MSGPACK_PP_SEQ_TAIL(seq) MSGPACK_PP_SEQ_TAIL_ID(MSGPACK_PP_SEQ_TAIL_I seq) +# define MSGPACK_PP_SEQ_TAIL_ID(id) id +# elif MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG() +# define MSGPACK_PP_SEQ_TAIL(seq) MSGPACK_PP_SEQ_TAIL_D(seq) +# define MSGPACK_PP_SEQ_TAIL_D(seq) MSGPACK_PP_SEQ_TAIL_I seq +# else +# define MSGPACK_PP_SEQ_TAIL(seq) MSGPACK_PP_SEQ_TAIL_I seq +# endif +# +# define MSGPACK_PP_SEQ_TAIL_I(x) +# +# /* MSGPACK_PP_SEQ_NIL */ +# +# define MSGPACK_PP_SEQ_NIL(x) (x) +# +# endif |