blob: 1faf032a49d97f7133bd6e72e9fd3e8b61dba0df [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001# /* **************************************************************************
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#
Jeff Thompson2277ce52013-08-01 17:34:11 -070012# include <ndnboost/preprocessor/slot/detail/shared.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070013#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070014# undef NDNBOOST_PP_LOCAL_SE
Jeff Thompsonf7d49942013-08-01 16:47:40 -070015#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070016# undef NDNBOOST_PP_LOCAL_SE_DIGIT_1
17# undef NDNBOOST_PP_LOCAL_SE_DIGIT_2
18# undef NDNBOOST_PP_LOCAL_SE_DIGIT_3
19# undef NDNBOOST_PP_LOCAL_SE_DIGIT_4
20# undef NDNBOOST_PP_LOCAL_SE_DIGIT_5
21# undef NDNBOOST_PP_LOCAL_SE_DIGIT_6
22# undef NDNBOOST_PP_LOCAL_SE_DIGIT_7
23# undef NDNBOOST_PP_LOCAL_SE_DIGIT_8
24# undef NDNBOOST_PP_LOCAL_SE_DIGIT_9
25# undef NDNBOOST_PP_LOCAL_SE_DIGIT_10
Jeff Thompsonf7d49942013-08-01 16:47:40 -070026#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070027# if NDNBOOST_PP_SLOT_TEMP_3 == 0
28# define NDNBOOST_PP_LOCAL_SE_DIGIT_3 0
29# elif NDNBOOST_PP_SLOT_TEMP_3 == 1
30# define NDNBOOST_PP_LOCAL_SE_DIGIT_3 1
31# elif NDNBOOST_PP_SLOT_TEMP_3 == 2
32# define NDNBOOST_PP_LOCAL_SE_DIGIT_3 2
33# elif NDNBOOST_PP_SLOT_TEMP_3 == 3
34# define NDNBOOST_PP_LOCAL_SE_DIGIT_3 3
35# elif NDNBOOST_PP_SLOT_TEMP_3 == 4
36# define NDNBOOST_PP_LOCAL_SE_DIGIT_3 4
37# elif NDNBOOST_PP_SLOT_TEMP_3 == 5
38# define NDNBOOST_PP_LOCAL_SE_DIGIT_3 5
39# elif NDNBOOST_PP_SLOT_TEMP_3 == 6
40# define NDNBOOST_PP_LOCAL_SE_DIGIT_3 6
41# elif NDNBOOST_PP_SLOT_TEMP_3 == 7
42# define NDNBOOST_PP_LOCAL_SE_DIGIT_3 7
43# elif NDNBOOST_PP_SLOT_TEMP_3 == 8
44# define NDNBOOST_PP_LOCAL_SE_DIGIT_3 8
45# elif NDNBOOST_PP_SLOT_TEMP_3 == 9
46# define NDNBOOST_PP_LOCAL_SE_DIGIT_3 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -070047# endif
48#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070049# if NDNBOOST_PP_SLOT_TEMP_2 == 0
50# define NDNBOOST_PP_LOCAL_SE_DIGIT_2 0
51# elif NDNBOOST_PP_SLOT_TEMP_2 == 1
52# define NDNBOOST_PP_LOCAL_SE_DIGIT_2 1
53# elif NDNBOOST_PP_SLOT_TEMP_2 == 2
54# define NDNBOOST_PP_LOCAL_SE_DIGIT_2 2
55# elif NDNBOOST_PP_SLOT_TEMP_2 == 3
56# define NDNBOOST_PP_LOCAL_SE_DIGIT_2 3
57# elif NDNBOOST_PP_SLOT_TEMP_2 == 4
58# define NDNBOOST_PP_LOCAL_SE_DIGIT_2 4
59# elif NDNBOOST_PP_SLOT_TEMP_2 == 5
60# define NDNBOOST_PP_LOCAL_SE_DIGIT_2 5
61# elif NDNBOOST_PP_SLOT_TEMP_2 == 6
62# define NDNBOOST_PP_LOCAL_SE_DIGIT_2 6
63# elif NDNBOOST_PP_SLOT_TEMP_2 == 7
64# define NDNBOOST_PP_LOCAL_SE_DIGIT_2 7
65# elif NDNBOOST_PP_SLOT_TEMP_2 == 8
66# define NDNBOOST_PP_LOCAL_SE_DIGIT_2 8
67# elif NDNBOOST_PP_SLOT_TEMP_2 == 9
68# define NDNBOOST_PP_LOCAL_SE_DIGIT_2 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -070069# endif
70#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070071# if NDNBOOST_PP_SLOT_TEMP_1 == 0
72# define NDNBOOST_PP_LOCAL_SE_DIGIT_1 0
73# elif NDNBOOST_PP_SLOT_TEMP_1 == 1
74# define NDNBOOST_PP_LOCAL_SE_DIGIT_1 1
75# elif NDNBOOST_PP_SLOT_TEMP_1 == 2
76# define NDNBOOST_PP_LOCAL_SE_DIGIT_1 2
77# elif NDNBOOST_PP_SLOT_TEMP_1 == 3
78# define NDNBOOST_PP_LOCAL_SE_DIGIT_1 3
79# elif NDNBOOST_PP_SLOT_TEMP_1 == 4
80# define NDNBOOST_PP_LOCAL_SE_DIGIT_1 4
81# elif NDNBOOST_PP_SLOT_TEMP_1 == 5
82# define NDNBOOST_PP_LOCAL_SE_DIGIT_1 5
83# elif NDNBOOST_PP_SLOT_TEMP_1 == 6
84# define NDNBOOST_PP_LOCAL_SE_DIGIT_1 6
85# elif NDNBOOST_PP_SLOT_TEMP_1 == 7
86# define NDNBOOST_PP_LOCAL_SE_DIGIT_1 7
87# elif NDNBOOST_PP_SLOT_TEMP_1 == 8
88# define NDNBOOST_PP_LOCAL_SE_DIGIT_1 8
89# elif NDNBOOST_PP_SLOT_TEMP_1 == 9
90# define NDNBOOST_PP_LOCAL_SE_DIGIT_1 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -070091# endif
92#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070093# if NDNBOOST_PP_LOCAL_SE_DIGIT_3
94# define NDNBOOST_PP_LOCAL_SE() NDNBOOST_PP_SLOT_CC_3(NDNBOOST_PP_LOCAL_SE_DIGIT_3, NDNBOOST_PP_LOCAL_SE_DIGIT_2, NDNBOOST_PP_LOCAL_SE_DIGIT_1)
95# elif NDNBOOST_PP_LOCAL_SE_DIGIT_2
96# define NDNBOOST_PP_LOCAL_SE() NDNBOOST_PP_SLOT_CC_2(NDNBOOST_PP_LOCAL_SE_DIGIT_2, NDNBOOST_PP_LOCAL_SE_DIGIT_1)
Jeff Thompsonf7d49942013-08-01 16:47:40 -070097# else
Jeff Thompson3d613fd2013-10-15 15:39:04 -070098# define NDNBOOST_PP_LOCAL_SE() NDNBOOST_PP_LOCAL_SE_DIGIT_1
Jeff Thompsonf7d49942013-08-01 16:47:40 -070099# endif