mirror of
https://github.com/msgpack/msgpack-c
synced 2026-06-08 16:11:40 +00:00
066d509a68
To remove boost dependency, `-DMSGPACK_USE_BOOST=OFF` for cmake. By default, `-DMSGPACK_USE_BOOST` is `ON`. NOTE: In order to build tests `-DMSGPACK_USE_BOOST=ON` is required. For C++ compiler, the option `-DMSGPACK_NO_BOOST` is required to remove boost.
42 lines
2.0 KiB
C++
42 lines
2.0 KiB
C++
# /* **************************************************************************
|
|
# * *
|
|
# * (C) Copyright Paul Mensonides 2011. *
|
|
# * (C) Copyright Edward Diener 2011. *
|
|
# * 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_TO_LIST_HPP
|
|
# define MSGPACK_PREPROCESSOR_SEQ_TO_LIST_HPP
|
|
#
|
|
# include <msgpack/preprocessor/punctuation/comma.hpp>
|
|
# include <msgpack/preprocessor/punctuation/paren.hpp>
|
|
# include <msgpack/preprocessor/seq/detail/binary_transform.hpp>
|
|
#
|
|
# /* MSGPACK_PP_SEQ_TO_LIST */
|
|
#
|
|
# if MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_MSVC()
|
|
# include <msgpack/preprocessor/seq/size.hpp>
|
|
# include <msgpack/preprocessor/seq/detail/to_list_msvc.hpp>
|
|
# define MSGPACK_PP_SEQ_TO_LIST(seq) \
|
|
MSGPACK_PP_SEQ_DETAIL_TO_LIST_MSVC \
|
|
( \
|
|
MSGPACK_PP_SEQ_TO_LIST_I(MSGPACK_PP_SEQ_BINARY_TRANSFORM(seq)), \
|
|
MSGPACK_PP_SEQ_SIZE(seq) \
|
|
) \
|
|
/**/
|
|
# else
|
|
# define MSGPACK_PP_SEQ_TO_LIST(seq) MSGPACK_PP_SEQ_TO_LIST_I(MSGPACK_PP_SEQ_BINARY_TRANSFORM(seq))
|
|
# endif
|
|
# define MSGPACK_PP_SEQ_TO_LIST_I(bseq) MSGPACK_PP_SEQ_TO_LIST_A bseq MSGPACK_PP_NIL MSGPACK_PP_SEQ_TO_LIST_B bseq
|
|
# define MSGPACK_PP_SEQ_TO_LIST_A(m, e) m(MSGPACK_PP_LPAREN() e MSGPACK_PP_COMMA() MSGPACK_PP_SEQ_TO_LIST_A_ID)
|
|
# define MSGPACK_PP_SEQ_TO_LIST_A_ID() MSGPACK_PP_SEQ_TO_LIST_A
|
|
# define MSGPACK_PP_SEQ_TO_LIST_B(m, e) m(MSGPACK_PP_RPAREN() MSGPACK_PP_SEQ_TO_LIST_B_ID)
|
|
# define MSGPACK_PP_SEQ_TO_LIST_B_ID() MSGPACK_PP_SEQ_TO_LIST_B
|
|
#
|
|
# endif
|