MessagePack for C++
slot2.hpp
Go to the documentation of this file.
1 # /* **************************************************************************
2 # * *
3 # * (C) Copyright Paul Mensonides 2002.
4 # * Distributed under the Boost Software License, Version 1.0. (See
5 # * accompanying file LICENSE_1_0.txt or copy at
6 # * http://www.boost.org/LICENSE_1_0.txt)
7 # * *
8 # ************************************************************************** */
9 #
10 # /* See http://www.boost.org for most recent version. */
11 #
13 #
14 # undef MSGPACK_PP_SLOT_2
15 #
16 # undef MSGPACK_PP_SLOT_2_DIGIT_1
17 # undef MSGPACK_PP_SLOT_2_DIGIT_2
18 # undef MSGPACK_PP_SLOT_2_DIGIT_3
19 # undef MSGPACK_PP_SLOT_2_DIGIT_4
20 # undef MSGPACK_PP_SLOT_2_DIGIT_5
21 # undef MSGPACK_PP_SLOT_2_DIGIT_6
22 # undef MSGPACK_PP_SLOT_2_DIGIT_7
23 # undef MSGPACK_PP_SLOT_2_DIGIT_8
24 # undef MSGPACK_PP_SLOT_2_DIGIT_9
25 # undef MSGPACK_PP_SLOT_2_DIGIT_10
26 #
27 # if MSGPACK_PP_SLOT_TEMP_10 == 0
28 # define MSGPACK_PP_SLOT_2_DIGIT_10 0
29 # elif MSGPACK_PP_SLOT_TEMP_10 == 1
30 # define MSGPACK_PP_SLOT_2_DIGIT_10 1
31 # elif MSGPACK_PP_SLOT_TEMP_10 == 2
32 # define MSGPACK_PP_SLOT_2_DIGIT_10 2
33 # elif MSGPACK_PP_SLOT_TEMP_10 == 3
34 # define MSGPACK_PP_SLOT_2_DIGIT_10 3
35 # elif MSGPACK_PP_SLOT_TEMP_10 == 4
36 # define MSGPACK_PP_SLOT_2_DIGIT_10 4
37 # elif MSGPACK_PP_SLOT_TEMP_10 == 5
38 # define MSGPACK_PP_SLOT_2_DIGIT_10 5
39 # elif MSGPACK_PP_SLOT_TEMP_10 == 6
40 # define MSGPACK_PP_SLOT_2_DIGIT_10 6
41 # elif MSGPACK_PP_SLOT_TEMP_10 == 7
42 # define MSGPACK_PP_SLOT_2_DIGIT_10 7
43 # elif MSGPACK_PP_SLOT_TEMP_10 == 8
44 # define MSGPACK_PP_SLOT_2_DIGIT_10 8
45 # elif MSGPACK_PP_SLOT_TEMP_10 == 9
46 # define MSGPACK_PP_SLOT_2_DIGIT_10 9
47 # endif
48 #
49 # if MSGPACK_PP_SLOT_TEMP_9 == 0
50 # define MSGPACK_PP_SLOT_2_DIGIT_9 0
51 # elif MSGPACK_PP_SLOT_TEMP_9 == 1
52 # define MSGPACK_PP_SLOT_2_DIGIT_9 1
53 # elif MSGPACK_PP_SLOT_TEMP_9 == 2
54 # define MSGPACK_PP_SLOT_2_DIGIT_9 2
55 # elif MSGPACK_PP_SLOT_TEMP_9 == 3
56 # define MSGPACK_PP_SLOT_2_DIGIT_9 3
57 # elif MSGPACK_PP_SLOT_TEMP_9 == 4
58 # define MSGPACK_PP_SLOT_2_DIGIT_9 4
59 # elif MSGPACK_PP_SLOT_TEMP_9 == 5
60 # define MSGPACK_PP_SLOT_2_DIGIT_9 5
61 # elif MSGPACK_PP_SLOT_TEMP_9 == 6
62 # define MSGPACK_PP_SLOT_2_DIGIT_9 6
63 # elif MSGPACK_PP_SLOT_TEMP_9 == 7
64 # define MSGPACK_PP_SLOT_2_DIGIT_9 7
65 # elif MSGPACK_PP_SLOT_TEMP_9 == 8
66 # define MSGPACK_PP_SLOT_2_DIGIT_9 8
67 # elif MSGPACK_PP_SLOT_TEMP_9 == 9
68 # define MSGPACK_PP_SLOT_2_DIGIT_9 9
69 # endif
70 #
71 # if MSGPACK_PP_SLOT_TEMP_8 == 0
72 # define MSGPACK_PP_SLOT_2_DIGIT_8 0
73 # elif MSGPACK_PP_SLOT_TEMP_8 == 1
74 # define MSGPACK_PP_SLOT_2_DIGIT_8 1
75 # elif MSGPACK_PP_SLOT_TEMP_8 == 2
76 # define MSGPACK_PP_SLOT_2_DIGIT_8 2
77 # elif MSGPACK_PP_SLOT_TEMP_8 == 3
78 # define MSGPACK_PP_SLOT_2_DIGIT_8 3
79 # elif MSGPACK_PP_SLOT_TEMP_8 == 4
80 # define MSGPACK_PP_SLOT_2_DIGIT_8 4
81 # elif MSGPACK_PP_SLOT_TEMP_8 == 5
82 # define MSGPACK_PP_SLOT_2_DIGIT_8 5
83 # elif MSGPACK_PP_SLOT_TEMP_8 == 6
84 # define MSGPACK_PP_SLOT_2_DIGIT_8 6
85 # elif MSGPACK_PP_SLOT_TEMP_8 == 7
86 # define MSGPACK_PP_SLOT_2_DIGIT_8 7
87 # elif MSGPACK_PP_SLOT_TEMP_8 == 8
88 # define MSGPACK_PP_SLOT_2_DIGIT_8 8
89 # elif MSGPACK_PP_SLOT_TEMP_8 == 9
90 # define MSGPACK_PP_SLOT_2_DIGIT_8 9
91 # endif
92 #
93 # if MSGPACK_PP_SLOT_TEMP_7 == 0
94 # define MSGPACK_PP_SLOT_2_DIGIT_7 0
95 # elif MSGPACK_PP_SLOT_TEMP_7 == 1
96 # define MSGPACK_PP_SLOT_2_DIGIT_7 1
97 # elif MSGPACK_PP_SLOT_TEMP_7 == 2
98 # define MSGPACK_PP_SLOT_2_DIGIT_7 2
99 # elif MSGPACK_PP_SLOT_TEMP_7 == 3
100 # define MSGPACK_PP_SLOT_2_DIGIT_7 3
101 # elif MSGPACK_PP_SLOT_TEMP_7 == 4
102 # define MSGPACK_PP_SLOT_2_DIGIT_7 4
103 # elif MSGPACK_PP_SLOT_TEMP_7 == 5
104 # define MSGPACK_PP_SLOT_2_DIGIT_7 5
105 # elif MSGPACK_PP_SLOT_TEMP_7 == 6
106 # define MSGPACK_PP_SLOT_2_DIGIT_7 6
107 # elif MSGPACK_PP_SLOT_TEMP_7 == 7
108 # define MSGPACK_PP_SLOT_2_DIGIT_7 7
109 # elif MSGPACK_PP_SLOT_TEMP_7 == 8
110 # define MSGPACK_PP_SLOT_2_DIGIT_7 8
111 # elif MSGPACK_PP_SLOT_TEMP_7 == 9
112 # define MSGPACK_PP_SLOT_2_DIGIT_7 9
113 # endif
114 #
115 # if MSGPACK_PP_SLOT_TEMP_6 == 0
116 # define MSGPACK_PP_SLOT_2_DIGIT_6 0
117 # elif MSGPACK_PP_SLOT_TEMP_6 == 1
118 # define MSGPACK_PP_SLOT_2_DIGIT_6 1
119 # elif MSGPACK_PP_SLOT_TEMP_6 == 2
120 # define MSGPACK_PP_SLOT_2_DIGIT_6 2
121 # elif MSGPACK_PP_SLOT_TEMP_6 == 3
122 # define MSGPACK_PP_SLOT_2_DIGIT_6 3
123 # elif MSGPACK_PP_SLOT_TEMP_6 == 4
124 # define MSGPACK_PP_SLOT_2_DIGIT_6 4
125 # elif MSGPACK_PP_SLOT_TEMP_6 == 5
126 # define MSGPACK_PP_SLOT_2_DIGIT_6 5
127 # elif MSGPACK_PP_SLOT_TEMP_6 == 6
128 # define MSGPACK_PP_SLOT_2_DIGIT_6 6
129 # elif MSGPACK_PP_SLOT_TEMP_6 == 7
130 # define MSGPACK_PP_SLOT_2_DIGIT_6 7
131 # elif MSGPACK_PP_SLOT_TEMP_6 == 8
132 # define MSGPACK_PP_SLOT_2_DIGIT_6 8
133 # elif MSGPACK_PP_SLOT_TEMP_6 == 9
134 # define MSGPACK_PP_SLOT_2_DIGIT_6 9
135 # endif
136 #
137 # if MSGPACK_PP_SLOT_TEMP_5 == 0
138 # define MSGPACK_PP_SLOT_2_DIGIT_5 0
139 # elif MSGPACK_PP_SLOT_TEMP_5 == 1
140 # define MSGPACK_PP_SLOT_2_DIGIT_5 1
141 # elif MSGPACK_PP_SLOT_TEMP_5 == 2
142 # define MSGPACK_PP_SLOT_2_DIGIT_5 2
143 # elif MSGPACK_PP_SLOT_TEMP_5 == 3
144 # define MSGPACK_PP_SLOT_2_DIGIT_5 3
145 # elif MSGPACK_PP_SLOT_TEMP_5 == 4
146 # define MSGPACK_PP_SLOT_2_DIGIT_5 4
147 # elif MSGPACK_PP_SLOT_TEMP_5 == 5
148 # define MSGPACK_PP_SLOT_2_DIGIT_5 5
149 # elif MSGPACK_PP_SLOT_TEMP_5 == 6
150 # define MSGPACK_PP_SLOT_2_DIGIT_5 6
151 # elif MSGPACK_PP_SLOT_TEMP_5 == 7
152 # define MSGPACK_PP_SLOT_2_DIGIT_5 7
153 # elif MSGPACK_PP_SLOT_TEMP_5 == 8
154 # define MSGPACK_PP_SLOT_2_DIGIT_5 8
155 # elif MSGPACK_PP_SLOT_TEMP_5 == 9
156 # define MSGPACK_PP_SLOT_2_DIGIT_5 9
157 # endif
158 #
159 # if MSGPACK_PP_SLOT_TEMP_4 == 0
160 # define MSGPACK_PP_SLOT_2_DIGIT_4 0
161 # elif MSGPACK_PP_SLOT_TEMP_4 == 1
162 # define MSGPACK_PP_SLOT_2_DIGIT_4 1
163 # elif MSGPACK_PP_SLOT_TEMP_4 == 2
164 # define MSGPACK_PP_SLOT_2_DIGIT_4 2
165 # elif MSGPACK_PP_SLOT_TEMP_4 == 3
166 # define MSGPACK_PP_SLOT_2_DIGIT_4 3
167 # elif MSGPACK_PP_SLOT_TEMP_4 == 4
168 # define MSGPACK_PP_SLOT_2_DIGIT_4 4
169 # elif MSGPACK_PP_SLOT_TEMP_4 == 5
170 # define MSGPACK_PP_SLOT_2_DIGIT_4 5
171 # elif MSGPACK_PP_SLOT_TEMP_4 == 6
172 # define MSGPACK_PP_SLOT_2_DIGIT_4 6
173 # elif MSGPACK_PP_SLOT_TEMP_4 == 7
174 # define MSGPACK_PP_SLOT_2_DIGIT_4 7
175 # elif MSGPACK_PP_SLOT_TEMP_4 == 8
176 # define MSGPACK_PP_SLOT_2_DIGIT_4 8
177 # elif MSGPACK_PP_SLOT_TEMP_4 == 9
178 # define MSGPACK_PP_SLOT_2_DIGIT_4 9
179 # endif
180 #
181 # if MSGPACK_PP_SLOT_TEMP_3 == 0
182 # define MSGPACK_PP_SLOT_2_DIGIT_3 0
183 # elif MSGPACK_PP_SLOT_TEMP_3 == 1
184 # define MSGPACK_PP_SLOT_2_DIGIT_3 1
185 # elif MSGPACK_PP_SLOT_TEMP_3 == 2
186 # define MSGPACK_PP_SLOT_2_DIGIT_3 2
187 # elif MSGPACK_PP_SLOT_TEMP_3 == 3
188 # define MSGPACK_PP_SLOT_2_DIGIT_3 3
189 # elif MSGPACK_PP_SLOT_TEMP_3 == 4
190 # define MSGPACK_PP_SLOT_2_DIGIT_3 4
191 # elif MSGPACK_PP_SLOT_TEMP_3 == 5
192 # define MSGPACK_PP_SLOT_2_DIGIT_3 5
193 # elif MSGPACK_PP_SLOT_TEMP_3 == 6
194 # define MSGPACK_PP_SLOT_2_DIGIT_3 6
195 # elif MSGPACK_PP_SLOT_TEMP_3 == 7
196 # define MSGPACK_PP_SLOT_2_DIGIT_3 7
197 # elif MSGPACK_PP_SLOT_TEMP_3 == 8
198 # define MSGPACK_PP_SLOT_2_DIGIT_3 8
199 # elif MSGPACK_PP_SLOT_TEMP_3 == 9
200 # define MSGPACK_PP_SLOT_2_DIGIT_3 9
201 # endif
202 #
203 # if MSGPACK_PP_SLOT_TEMP_2 == 0
204 # define MSGPACK_PP_SLOT_2_DIGIT_2 0
205 # elif MSGPACK_PP_SLOT_TEMP_2 == 1
206 # define MSGPACK_PP_SLOT_2_DIGIT_2 1
207 # elif MSGPACK_PP_SLOT_TEMP_2 == 2
208 # define MSGPACK_PP_SLOT_2_DIGIT_2 2
209 # elif MSGPACK_PP_SLOT_TEMP_2 == 3
210 # define MSGPACK_PP_SLOT_2_DIGIT_2 3
211 # elif MSGPACK_PP_SLOT_TEMP_2 == 4
212 # define MSGPACK_PP_SLOT_2_DIGIT_2 4
213 # elif MSGPACK_PP_SLOT_TEMP_2 == 5
214 # define MSGPACK_PP_SLOT_2_DIGIT_2 5
215 # elif MSGPACK_PP_SLOT_TEMP_2 == 6
216 # define MSGPACK_PP_SLOT_2_DIGIT_2 6
217 # elif MSGPACK_PP_SLOT_TEMP_2 == 7
218 # define MSGPACK_PP_SLOT_2_DIGIT_2 7
219 # elif MSGPACK_PP_SLOT_TEMP_2 == 8
220 # define MSGPACK_PP_SLOT_2_DIGIT_2 8
221 # elif MSGPACK_PP_SLOT_TEMP_2 == 9
222 # define MSGPACK_PP_SLOT_2_DIGIT_2 9
223 # endif
224 #
225 # if MSGPACK_PP_SLOT_TEMP_1 == 0
226 # define MSGPACK_PP_SLOT_2_DIGIT_1 0
227 # elif MSGPACK_PP_SLOT_TEMP_1 == 1
228 # define MSGPACK_PP_SLOT_2_DIGIT_1 1
229 # elif MSGPACK_PP_SLOT_TEMP_1 == 2
230 # define MSGPACK_PP_SLOT_2_DIGIT_1 2
231 # elif MSGPACK_PP_SLOT_TEMP_1 == 3
232 # define MSGPACK_PP_SLOT_2_DIGIT_1 3
233 # elif MSGPACK_PP_SLOT_TEMP_1 == 4
234 # define MSGPACK_PP_SLOT_2_DIGIT_1 4
235 # elif MSGPACK_PP_SLOT_TEMP_1 == 5
236 # define MSGPACK_PP_SLOT_2_DIGIT_1 5
237 # elif MSGPACK_PP_SLOT_TEMP_1 == 6
238 # define MSGPACK_PP_SLOT_2_DIGIT_1 6
239 # elif MSGPACK_PP_SLOT_TEMP_1 == 7
240 # define MSGPACK_PP_SLOT_2_DIGIT_1 7
241 # elif MSGPACK_PP_SLOT_TEMP_1 == 8
242 # define MSGPACK_PP_SLOT_2_DIGIT_1 8
243 # elif MSGPACK_PP_SLOT_TEMP_1 == 9
244 # define MSGPACK_PP_SLOT_2_DIGIT_1 9
245 # endif
246 #
247 # if MSGPACK_PP_SLOT_2_DIGIT_10
248 # define MSGPACK_PP_SLOT_2() MSGPACK_PP_SLOT_CC_10(MSGPACK_PP_SLOT_2_DIGIT_10, MSGPACK_PP_SLOT_2_DIGIT_9, MSGPACK_PP_SLOT_2_DIGIT_8, MSGPACK_PP_SLOT_2_DIGIT_7, MSGPACK_PP_SLOT_2_DIGIT_6, MSGPACK_PP_SLOT_2_DIGIT_5, MSGPACK_PP_SLOT_2_DIGIT_4, MSGPACK_PP_SLOT_2_DIGIT_3, MSGPACK_PP_SLOT_2_DIGIT_2, MSGPACK_PP_SLOT_2_DIGIT_1)
249 # elif MSGPACK_PP_SLOT_2_DIGIT_9
250 # define MSGPACK_PP_SLOT_2() MSGPACK_PP_SLOT_CC_9(MSGPACK_PP_SLOT_2_DIGIT_9, MSGPACK_PP_SLOT_2_DIGIT_8, MSGPACK_PP_SLOT_2_DIGIT_7, MSGPACK_PP_SLOT_2_DIGIT_6, MSGPACK_PP_SLOT_2_DIGIT_5, MSGPACK_PP_SLOT_2_DIGIT_4, MSGPACK_PP_SLOT_2_DIGIT_3, MSGPACK_PP_SLOT_2_DIGIT_2, MSGPACK_PP_SLOT_2_DIGIT_1)
251 # elif MSGPACK_PP_SLOT_2_DIGIT_8
252 # define MSGPACK_PP_SLOT_2() MSGPACK_PP_SLOT_CC_8(MSGPACK_PP_SLOT_2_DIGIT_8, MSGPACK_PP_SLOT_2_DIGIT_7, MSGPACK_PP_SLOT_2_DIGIT_6, MSGPACK_PP_SLOT_2_DIGIT_5, MSGPACK_PP_SLOT_2_DIGIT_4, MSGPACK_PP_SLOT_2_DIGIT_3, MSGPACK_PP_SLOT_2_DIGIT_2, MSGPACK_PP_SLOT_2_DIGIT_1)
253 # elif MSGPACK_PP_SLOT_2_DIGIT_7
254 # define MSGPACK_PP_SLOT_2() MSGPACK_PP_SLOT_CC_7(MSGPACK_PP_SLOT_2_DIGIT_7, MSGPACK_PP_SLOT_2_DIGIT_6, MSGPACK_PP_SLOT_2_DIGIT_5, MSGPACK_PP_SLOT_2_DIGIT_4, MSGPACK_PP_SLOT_2_DIGIT_3, MSGPACK_PP_SLOT_2_DIGIT_2, MSGPACK_PP_SLOT_2_DIGIT_1)
255 # elif MSGPACK_PP_SLOT_2_DIGIT_6
256 # define MSGPACK_PP_SLOT_2() MSGPACK_PP_SLOT_CC_6(MSGPACK_PP_SLOT_2_DIGIT_6, MSGPACK_PP_SLOT_2_DIGIT_5, MSGPACK_PP_SLOT_2_DIGIT_4, MSGPACK_PP_SLOT_2_DIGIT_3, MSGPACK_PP_SLOT_2_DIGIT_2, MSGPACK_PP_SLOT_2_DIGIT_1)
257 # elif MSGPACK_PP_SLOT_2_DIGIT_5
258 # define MSGPACK_PP_SLOT_2() MSGPACK_PP_SLOT_CC_5(MSGPACK_PP_SLOT_2_DIGIT_5, MSGPACK_PP_SLOT_2_DIGIT_4, MSGPACK_PP_SLOT_2_DIGIT_3, MSGPACK_PP_SLOT_2_DIGIT_2, MSGPACK_PP_SLOT_2_DIGIT_1)
259 # elif MSGPACK_PP_SLOT_2_DIGIT_4
260 # define MSGPACK_PP_SLOT_2() MSGPACK_PP_SLOT_CC_4(MSGPACK_PP_SLOT_2_DIGIT_4, MSGPACK_PP_SLOT_2_DIGIT_3, MSGPACK_PP_SLOT_2_DIGIT_2, MSGPACK_PP_SLOT_2_DIGIT_1)
261 # elif MSGPACK_PP_SLOT_2_DIGIT_3
262 # define MSGPACK_PP_SLOT_2() MSGPACK_PP_SLOT_CC_3(MSGPACK_PP_SLOT_2_DIGIT_3, MSGPACK_PP_SLOT_2_DIGIT_2, MSGPACK_PP_SLOT_2_DIGIT_1)
263 # elif MSGPACK_PP_SLOT_2_DIGIT_2
264 # define MSGPACK_PP_SLOT_2() MSGPACK_PP_SLOT_CC_2(MSGPACK_PP_SLOT_2_DIGIT_2, MSGPACK_PP_SLOT_2_DIGIT_1)
265 # else
266 # define MSGPACK_PP_SLOT_2() MSGPACK_PP_SLOT_2_DIGIT_1
267 # endif