Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 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 | # |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 12 | # include <ndnboost/preprocessor/slot/detail/shared.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 13 | # |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 14 | # undef NDNBOOST_PP_ITERATION_FINISH_3 |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 15 | # |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 16 | # undef NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 |
| 17 | # undef NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 |
| 18 | # undef NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 |
| 19 | # undef NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_4 |
| 20 | # undef NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_5 |
| 21 | # undef NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_6 |
| 22 | # undef NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_7 |
| 23 | # undef NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_8 |
| 24 | # undef NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_9 |
| 25 | # undef NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_10 |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 26 | # |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 27 | # if NDNBOOST_PP_SLOT_TEMP_3 == 0 |
| 28 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 0 |
| 29 | # elif NDNBOOST_PP_SLOT_TEMP_3 == 1 |
| 30 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 1 |
| 31 | # elif NDNBOOST_PP_SLOT_TEMP_3 == 2 |
| 32 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 2 |
| 33 | # elif NDNBOOST_PP_SLOT_TEMP_3 == 3 |
| 34 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 3 |
| 35 | # elif NDNBOOST_PP_SLOT_TEMP_3 == 4 |
| 36 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 4 |
| 37 | # elif NDNBOOST_PP_SLOT_TEMP_3 == 5 |
| 38 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 5 |
| 39 | # elif NDNBOOST_PP_SLOT_TEMP_3 == 6 |
| 40 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 6 |
| 41 | # elif NDNBOOST_PP_SLOT_TEMP_3 == 7 |
| 42 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 7 |
| 43 | # elif NDNBOOST_PP_SLOT_TEMP_3 == 8 |
| 44 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 8 |
| 45 | # elif NDNBOOST_PP_SLOT_TEMP_3 == 9 |
| 46 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 9 |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 47 | # endif |
| 48 | # |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 49 | # if NDNBOOST_PP_SLOT_TEMP_2 == 0 |
| 50 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 0 |
| 51 | # elif NDNBOOST_PP_SLOT_TEMP_2 == 1 |
| 52 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 1 |
| 53 | # elif NDNBOOST_PP_SLOT_TEMP_2 == 2 |
| 54 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 2 |
| 55 | # elif NDNBOOST_PP_SLOT_TEMP_2 == 3 |
| 56 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 3 |
| 57 | # elif NDNBOOST_PP_SLOT_TEMP_2 == 4 |
| 58 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 4 |
| 59 | # elif NDNBOOST_PP_SLOT_TEMP_2 == 5 |
| 60 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 5 |
| 61 | # elif NDNBOOST_PP_SLOT_TEMP_2 == 6 |
| 62 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 6 |
| 63 | # elif NDNBOOST_PP_SLOT_TEMP_2 == 7 |
| 64 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 7 |
| 65 | # elif NDNBOOST_PP_SLOT_TEMP_2 == 8 |
| 66 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 8 |
| 67 | # elif NDNBOOST_PP_SLOT_TEMP_2 == 9 |
| 68 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 9 |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 69 | # endif |
| 70 | # |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 71 | # if NDNBOOST_PP_SLOT_TEMP_1 == 0 |
| 72 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 0 |
| 73 | # elif NDNBOOST_PP_SLOT_TEMP_1 == 1 |
| 74 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 1 |
| 75 | # elif NDNBOOST_PP_SLOT_TEMP_1 == 2 |
| 76 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 2 |
| 77 | # elif NDNBOOST_PP_SLOT_TEMP_1 == 3 |
| 78 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 3 |
| 79 | # elif NDNBOOST_PP_SLOT_TEMP_1 == 4 |
| 80 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 4 |
| 81 | # elif NDNBOOST_PP_SLOT_TEMP_1 == 5 |
| 82 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 5 |
| 83 | # elif NDNBOOST_PP_SLOT_TEMP_1 == 6 |
| 84 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 6 |
| 85 | # elif NDNBOOST_PP_SLOT_TEMP_1 == 7 |
| 86 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 7 |
| 87 | # elif NDNBOOST_PP_SLOT_TEMP_1 == 8 |
| 88 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 8 |
| 89 | # elif NDNBOOST_PP_SLOT_TEMP_1 == 9 |
| 90 | # define NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 9 |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 91 | # endif |
| 92 | # |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 93 | # if NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3 |
| 94 | # define NDNBOOST_PP_ITERATION_FINISH_3 NDNBOOST_PP_SLOT_CC_3(NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_3, NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2, NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1) |
| 95 | # elif NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2 |
| 96 | # define NDNBOOST_PP_ITERATION_FINISH_3 NDNBOOST_PP_SLOT_CC_2(NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_2, NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 97 | # else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 98 | # define NDNBOOST_PP_ITERATION_FINISH_3 NDNBOOST_PP_ITERATION_FINISH_3_DIGIT_1 |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 99 | # endif |