MessagePack for C++
Toggle main menu visibility
Loading...
Searching...
No Matches
msgpack
preprocessor
list
rest_n.hpp
Go to the documentation of this file.
1
#
/* Copyright (C) 2001
2
# * Housemarque Oy
3
# * http://www.housemarque.com
4
# *
5
# * Distributed under the Boost Software License, Version 1.0. (See
6
# * accompanying file LICENSE_1_0.txt or copy at
7
# * http://www.boost.org/LICENSE_1_0.txt)
8
# */
9
#
10
#
/* Revised by Paul Mensonides (2002) */
11
#
12
#
/* See http://www.boost.org for most recent version. */
13
#
14
# ifndef MSGPACK_PREPROCESSOR_LIST_REST_N_HPP
15
# define MSGPACK_PREPROCESSOR_LIST_REST_N_HPP
16
#
17
# include <
msgpack/preprocessor/arithmetic/dec.hpp
>
18
# include <
msgpack/preprocessor/config/config.hpp
>
19
# include <
msgpack/preprocessor/control/while.hpp
>
20
# include <
msgpack/preprocessor/list/adt.hpp
>
21
# include <
msgpack/preprocessor/tuple/elem.hpp
>
22
#
23
#
/* MSGPACK_PP_LIST_REST_N */
24
#
25
# if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG()
26
# define MSGPACK_PP_LIST_REST_N(count, list) MSGPACK_PP_TUPLE_ELEM(2, 0, MSGPACK_PP_WHILE(MSGPACK_PP_LIST_REST_N_P, MSGPACK_PP_LIST_REST_N_O, (list, count)))
27
# else
28
# define MSGPACK_PP_LIST_REST_N(count, list) MSGPACK_PP_LIST_REST_N_I(count, list)
29
# define MSGPACK_PP_LIST_REST_N_I(count, list) MSGPACK_PP_TUPLE_ELEM(2, 0, MSGPACK_PP_WHILE(MSGPACK_PP_LIST_REST_N_P, MSGPACK_PP_LIST_REST_N_O, (list, count)))
30
# endif
31
#
32
# if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG()
33
# define MSGPACK_PP_LIST_REST_N_P(d, lc) MSGPACK_PP_TUPLE_ELEM(2, 1, lc)
34
# else
35
# define MSGPACK_PP_LIST_REST_N_P(d, lc) MSGPACK_PP_LIST_REST_N_P_I lc
36
# define MSGPACK_PP_LIST_REST_N_P_I(list, count) count
37
# endif
38
#
39
# if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG()
40
# define MSGPACK_PP_LIST_REST_N_O(d, lc) (MSGPACK_PP_LIST_REST(MSGPACK_PP_TUPLE_ELEM(2, 0, lc)), MSGPACK_PP_DEC(MSGPACK_PP_TUPLE_ELEM(2, 1, lc)))
41
# else
42
# define MSGPACK_PP_LIST_REST_N_O(d, lc) MSGPACK_PP_LIST_REST_N_O_I lc
43
# define MSGPACK_PP_LIST_REST_N_O_I(list, count) (MSGPACK_PP_LIST_REST(list), MSGPACK_PP_DEC(count))
44
# endif
45
#
46
#
/* MSGPACK_PP_LIST_REST_N_D */
47
#
48
# if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG()
49
# define MSGPACK_PP_LIST_REST_N_D(d, count, list) MSGPACK_PP_TUPLE_ELEM(2, 0, MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_LIST_REST_N_P, MSGPACK_PP_LIST_REST_N_O, (list, count)))
50
# else
51
# define MSGPACK_PP_LIST_REST_N_D(d, count, list) MSGPACK_PP_LIST_REST_N_D_I(d, count, list)
52
# define MSGPACK_PP_LIST_REST_N_D_I(d, count, list) MSGPACK_PP_TUPLE_ELEM(2, 0, MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_LIST_REST_N_P, MSGPACK_PP_LIST_REST_N_O, (list, count)))
53
# endif
54
#
55
# endif
adt.hpp
dec.hpp
config.hpp
while.hpp
elem.hpp
Generated by
1.17.0