Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 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 | # |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 14 | # ifndef NDNBOOST_PREPROCESSOR_ARITHMETIC_DEC_HPP |
| 15 | # define NDNBOOST_PREPROCESSOR_ARITHMETIC_DEC_HPP |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 16 | # |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 17 | # include <ndnboost/preprocessor/config/config.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 18 | # |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 19 | # /* NDNBOOST_PP_DEC */ |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 20 | # |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 21 | # if ~NDNBOOST_PP_CONFIG_FLAGS() & NDNBOOST_PP_CONFIG_MWCC() |
| 22 | # define NDNBOOST_PP_DEC(x) NDNBOOST_PP_DEC_I(x) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 23 | # else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 24 | # define NDNBOOST_PP_DEC(x) NDNBOOST_PP_DEC_OO((x)) |
| 25 | # define NDNBOOST_PP_DEC_OO(par) NDNBOOST_PP_DEC_I ## par |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 26 | # endif |
| 27 | # |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 28 | # define NDNBOOST_PP_DEC_I(x) NDNBOOST_PP_DEC_ ## x |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 29 | # |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 30 | # define NDNBOOST_PP_DEC_0 0 |
| 31 | # define NDNBOOST_PP_DEC_1 0 |
| 32 | # define NDNBOOST_PP_DEC_2 1 |
| 33 | # define NDNBOOST_PP_DEC_3 2 |
| 34 | # define NDNBOOST_PP_DEC_4 3 |
| 35 | # define NDNBOOST_PP_DEC_5 4 |
| 36 | # define NDNBOOST_PP_DEC_6 5 |
| 37 | # define NDNBOOST_PP_DEC_7 6 |
| 38 | # define NDNBOOST_PP_DEC_8 7 |
| 39 | # define NDNBOOST_PP_DEC_9 8 |
| 40 | # define NDNBOOST_PP_DEC_10 9 |
| 41 | # define NDNBOOST_PP_DEC_11 10 |
| 42 | # define NDNBOOST_PP_DEC_12 11 |
| 43 | # define NDNBOOST_PP_DEC_13 12 |
| 44 | # define NDNBOOST_PP_DEC_14 13 |
| 45 | # define NDNBOOST_PP_DEC_15 14 |
| 46 | # define NDNBOOST_PP_DEC_16 15 |
| 47 | # define NDNBOOST_PP_DEC_17 16 |
| 48 | # define NDNBOOST_PP_DEC_18 17 |
| 49 | # define NDNBOOST_PP_DEC_19 18 |
| 50 | # define NDNBOOST_PP_DEC_20 19 |
| 51 | # define NDNBOOST_PP_DEC_21 20 |
| 52 | # define NDNBOOST_PP_DEC_22 21 |
| 53 | # define NDNBOOST_PP_DEC_23 22 |
| 54 | # define NDNBOOST_PP_DEC_24 23 |
| 55 | # define NDNBOOST_PP_DEC_25 24 |
| 56 | # define NDNBOOST_PP_DEC_26 25 |
| 57 | # define NDNBOOST_PP_DEC_27 26 |
| 58 | # define NDNBOOST_PP_DEC_28 27 |
| 59 | # define NDNBOOST_PP_DEC_29 28 |
| 60 | # define NDNBOOST_PP_DEC_30 29 |
| 61 | # define NDNBOOST_PP_DEC_31 30 |
| 62 | # define NDNBOOST_PP_DEC_32 31 |
| 63 | # define NDNBOOST_PP_DEC_33 32 |
| 64 | # define NDNBOOST_PP_DEC_34 33 |
| 65 | # define NDNBOOST_PP_DEC_35 34 |
| 66 | # define NDNBOOST_PP_DEC_36 35 |
| 67 | # define NDNBOOST_PP_DEC_37 36 |
| 68 | # define NDNBOOST_PP_DEC_38 37 |
| 69 | # define NDNBOOST_PP_DEC_39 38 |
| 70 | # define NDNBOOST_PP_DEC_40 39 |
| 71 | # define NDNBOOST_PP_DEC_41 40 |
| 72 | # define NDNBOOST_PP_DEC_42 41 |
| 73 | # define NDNBOOST_PP_DEC_43 42 |
| 74 | # define NDNBOOST_PP_DEC_44 43 |
| 75 | # define NDNBOOST_PP_DEC_45 44 |
| 76 | # define NDNBOOST_PP_DEC_46 45 |
| 77 | # define NDNBOOST_PP_DEC_47 46 |
| 78 | # define NDNBOOST_PP_DEC_48 47 |
| 79 | # define NDNBOOST_PP_DEC_49 48 |
| 80 | # define NDNBOOST_PP_DEC_50 49 |
| 81 | # define NDNBOOST_PP_DEC_51 50 |
| 82 | # define NDNBOOST_PP_DEC_52 51 |
| 83 | # define NDNBOOST_PP_DEC_53 52 |
| 84 | # define NDNBOOST_PP_DEC_54 53 |
| 85 | # define NDNBOOST_PP_DEC_55 54 |
| 86 | # define NDNBOOST_PP_DEC_56 55 |
| 87 | # define NDNBOOST_PP_DEC_57 56 |
| 88 | # define NDNBOOST_PP_DEC_58 57 |
| 89 | # define NDNBOOST_PP_DEC_59 58 |
| 90 | # define NDNBOOST_PP_DEC_60 59 |
| 91 | # define NDNBOOST_PP_DEC_61 60 |
| 92 | # define NDNBOOST_PP_DEC_62 61 |
| 93 | # define NDNBOOST_PP_DEC_63 62 |
| 94 | # define NDNBOOST_PP_DEC_64 63 |
| 95 | # define NDNBOOST_PP_DEC_65 64 |
| 96 | # define NDNBOOST_PP_DEC_66 65 |
| 97 | # define NDNBOOST_PP_DEC_67 66 |
| 98 | # define NDNBOOST_PP_DEC_68 67 |
| 99 | # define NDNBOOST_PP_DEC_69 68 |
| 100 | # define NDNBOOST_PP_DEC_70 69 |
| 101 | # define NDNBOOST_PP_DEC_71 70 |
| 102 | # define NDNBOOST_PP_DEC_72 71 |
| 103 | # define NDNBOOST_PP_DEC_73 72 |
| 104 | # define NDNBOOST_PP_DEC_74 73 |
| 105 | # define NDNBOOST_PP_DEC_75 74 |
| 106 | # define NDNBOOST_PP_DEC_76 75 |
| 107 | # define NDNBOOST_PP_DEC_77 76 |
| 108 | # define NDNBOOST_PP_DEC_78 77 |
| 109 | # define NDNBOOST_PP_DEC_79 78 |
| 110 | # define NDNBOOST_PP_DEC_80 79 |
| 111 | # define NDNBOOST_PP_DEC_81 80 |
| 112 | # define NDNBOOST_PP_DEC_82 81 |
| 113 | # define NDNBOOST_PP_DEC_83 82 |
| 114 | # define NDNBOOST_PP_DEC_84 83 |
| 115 | # define NDNBOOST_PP_DEC_85 84 |
| 116 | # define NDNBOOST_PP_DEC_86 85 |
| 117 | # define NDNBOOST_PP_DEC_87 86 |
| 118 | # define NDNBOOST_PP_DEC_88 87 |
| 119 | # define NDNBOOST_PP_DEC_89 88 |
| 120 | # define NDNBOOST_PP_DEC_90 89 |
| 121 | # define NDNBOOST_PP_DEC_91 90 |
| 122 | # define NDNBOOST_PP_DEC_92 91 |
| 123 | # define NDNBOOST_PP_DEC_93 92 |
| 124 | # define NDNBOOST_PP_DEC_94 93 |
| 125 | # define NDNBOOST_PP_DEC_95 94 |
| 126 | # define NDNBOOST_PP_DEC_96 95 |
| 127 | # define NDNBOOST_PP_DEC_97 96 |
| 128 | # define NDNBOOST_PP_DEC_98 97 |
| 129 | # define NDNBOOST_PP_DEC_99 98 |
| 130 | # define NDNBOOST_PP_DEC_100 99 |
| 131 | # define NDNBOOST_PP_DEC_101 100 |
| 132 | # define NDNBOOST_PP_DEC_102 101 |
| 133 | # define NDNBOOST_PP_DEC_103 102 |
| 134 | # define NDNBOOST_PP_DEC_104 103 |
| 135 | # define NDNBOOST_PP_DEC_105 104 |
| 136 | # define NDNBOOST_PP_DEC_106 105 |
| 137 | # define NDNBOOST_PP_DEC_107 106 |
| 138 | # define NDNBOOST_PP_DEC_108 107 |
| 139 | # define NDNBOOST_PP_DEC_109 108 |
| 140 | # define NDNBOOST_PP_DEC_110 109 |
| 141 | # define NDNBOOST_PP_DEC_111 110 |
| 142 | # define NDNBOOST_PP_DEC_112 111 |
| 143 | # define NDNBOOST_PP_DEC_113 112 |
| 144 | # define NDNBOOST_PP_DEC_114 113 |
| 145 | # define NDNBOOST_PP_DEC_115 114 |
| 146 | # define NDNBOOST_PP_DEC_116 115 |
| 147 | # define NDNBOOST_PP_DEC_117 116 |
| 148 | # define NDNBOOST_PP_DEC_118 117 |
| 149 | # define NDNBOOST_PP_DEC_119 118 |
| 150 | # define NDNBOOST_PP_DEC_120 119 |
| 151 | # define NDNBOOST_PP_DEC_121 120 |
| 152 | # define NDNBOOST_PP_DEC_122 121 |
| 153 | # define NDNBOOST_PP_DEC_123 122 |
| 154 | # define NDNBOOST_PP_DEC_124 123 |
| 155 | # define NDNBOOST_PP_DEC_125 124 |
| 156 | # define NDNBOOST_PP_DEC_126 125 |
| 157 | # define NDNBOOST_PP_DEC_127 126 |
| 158 | # define NDNBOOST_PP_DEC_128 127 |
| 159 | # define NDNBOOST_PP_DEC_129 128 |
| 160 | # define NDNBOOST_PP_DEC_130 129 |
| 161 | # define NDNBOOST_PP_DEC_131 130 |
| 162 | # define NDNBOOST_PP_DEC_132 131 |
| 163 | # define NDNBOOST_PP_DEC_133 132 |
| 164 | # define NDNBOOST_PP_DEC_134 133 |
| 165 | # define NDNBOOST_PP_DEC_135 134 |
| 166 | # define NDNBOOST_PP_DEC_136 135 |
| 167 | # define NDNBOOST_PP_DEC_137 136 |
| 168 | # define NDNBOOST_PP_DEC_138 137 |
| 169 | # define NDNBOOST_PP_DEC_139 138 |
| 170 | # define NDNBOOST_PP_DEC_140 139 |
| 171 | # define NDNBOOST_PP_DEC_141 140 |
| 172 | # define NDNBOOST_PP_DEC_142 141 |
| 173 | # define NDNBOOST_PP_DEC_143 142 |
| 174 | # define NDNBOOST_PP_DEC_144 143 |
| 175 | # define NDNBOOST_PP_DEC_145 144 |
| 176 | # define NDNBOOST_PP_DEC_146 145 |
| 177 | # define NDNBOOST_PP_DEC_147 146 |
| 178 | # define NDNBOOST_PP_DEC_148 147 |
| 179 | # define NDNBOOST_PP_DEC_149 148 |
| 180 | # define NDNBOOST_PP_DEC_150 149 |
| 181 | # define NDNBOOST_PP_DEC_151 150 |
| 182 | # define NDNBOOST_PP_DEC_152 151 |
| 183 | # define NDNBOOST_PP_DEC_153 152 |
| 184 | # define NDNBOOST_PP_DEC_154 153 |
| 185 | # define NDNBOOST_PP_DEC_155 154 |
| 186 | # define NDNBOOST_PP_DEC_156 155 |
| 187 | # define NDNBOOST_PP_DEC_157 156 |
| 188 | # define NDNBOOST_PP_DEC_158 157 |
| 189 | # define NDNBOOST_PP_DEC_159 158 |
| 190 | # define NDNBOOST_PP_DEC_160 159 |
| 191 | # define NDNBOOST_PP_DEC_161 160 |
| 192 | # define NDNBOOST_PP_DEC_162 161 |
| 193 | # define NDNBOOST_PP_DEC_163 162 |
| 194 | # define NDNBOOST_PP_DEC_164 163 |
| 195 | # define NDNBOOST_PP_DEC_165 164 |
| 196 | # define NDNBOOST_PP_DEC_166 165 |
| 197 | # define NDNBOOST_PP_DEC_167 166 |
| 198 | # define NDNBOOST_PP_DEC_168 167 |
| 199 | # define NDNBOOST_PP_DEC_169 168 |
| 200 | # define NDNBOOST_PP_DEC_170 169 |
| 201 | # define NDNBOOST_PP_DEC_171 170 |
| 202 | # define NDNBOOST_PP_DEC_172 171 |
| 203 | # define NDNBOOST_PP_DEC_173 172 |
| 204 | # define NDNBOOST_PP_DEC_174 173 |
| 205 | # define NDNBOOST_PP_DEC_175 174 |
| 206 | # define NDNBOOST_PP_DEC_176 175 |
| 207 | # define NDNBOOST_PP_DEC_177 176 |
| 208 | # define NDNBOOST_PP_DEC_178 177 |
| 209 | # define NDNBOOST_PP_DEC_179 178 |
| 210 | # define NDNBOOST_PP_DEC_180 179 |
| 211 | # define NDNBOOST_PP_DEC_181 180 |
| 212 | # define NDNBOOST_PP_DEC_182 181 |
| 213 | # define NDNBOOST_PP_DEC_183 182 |
| 214 | # define NDNBOOST_PP_DEC_184 183 |
| 215 | # define NDNBOOST_PP_DEC_185 184 |
| 216 | # define NDNBOOST_PP_DEC_186 185 |
| 217 | # define NDNBOOST_PP_DEC_187 186 |
| 218 | # define NDNBOOST_PP_DEC_188 187 |
| 219 | # define NDNBOOST_PP_DEC_189 188 |
| 220 | # define NDNBOOST_PP_DEC_190 189 |
| 221 | # define NDNBOOST_PP_DEC_191 190 |
| 222 | # define NDNBOOST_PP_DEC_192 191 |
| 223 | # define NDNBOOST_PP_DEC_193 192 |
| 224 | # define NDNBOOST_PP_DEC_194 193 |
| 225 | # define NDNBOOST_PP_DEC_195 194 |
| 226 | # define NDNBOOST_PP_DEC_196 195 |
| 227 | # define NDNBOOST_PP_DEC_197 196 |
| 228 | # define NDNBOOST_PP_DEC_198 197 |
| 229 | # define NDNBOOST_PP_DEC_199 198 |
| 230 | # define NDNBOOST_PP_DEC_200 199 |
| 231 | # define NDNBOOST_PP_DEC_201 200 |
| 232 | # define NDNBOOST_PP_DEC_202 201 |
| 233 | # define NDNBOOST_PP_DEC_203 202 |
| 234 | # define NDNBOOST_PP_DEC_204 203 |
| 235 | # define NDNBOOST_PP_DEC_205 204 |
| 236 | # define NDNBOOST_PP_DEC_206 205 |
| 237 | # define NDNBOOST_PP_DEC_207 206 |
| 238 | # define NDNBOOST_PP_DEC_208 207 |
| 239 | # define NDNBOOST_PP_DEC_209 208 |
| 240 | # define NDNBOOST_PP_DEC_210 209 |
| 241 | # define NDNBOOST_PP_DEC_211 210 |
| 242 | # define NDNBOOST_PP_DEC_212 211 |
| 243 | # define NDNBOOST_PP_DEC_213 212 |
| 244 | # define NDNBOOST_PP_DEC_214 213 |
| 245 | # define NDNBOOST_PP_DEC_215 214 |
| 246 | # define NDNBOOST_PP_DEC_216 215 |
| 247 | # define NDNBOOST_PP_DEC_217 216 |
| 248 | # define NDNBOOST_PP_DEC_218 217 |
| 249 | # define NDNBOOST_PP_DEC_219 218 |
| 250 | # define NDNBOOST_PP_DEC_220 219 |
| 251 | # define NDNBOOST_PP_DEC_221 220 |
| 252 | # define NDNBOOST_PP_DEC_222 221 |
| 253 | # define NDNBOOST_PP_DEC_223 222 |
| 254 | # define NDNBOOST_PP_DEC_224 223 |
| 255 | # define NDNBOOST_PP_DEC_225 224 |
| 256 | # define NDNBOOST_PP_DEC_226 225 |
| 257 | # define NDNBOOST_PP_DEC_227 226 |
| 258 | # define NDNBOOST_PP_DEC_228 227 |
| 259 | # define NDNBOOST_PP_DEC_229 228 |
| 260 | # define NDNBOOST_PP_DEC_230 229 |
| 261 | # define NDNBOOST_PP_DEC_231 230 |
| 262 | # define NDNBOOST_PP_DEC_232 231 |
| 263 | # define NDNBOOST_PP_DEC_233 232 |
| 264 | # define NDNBOOST_PP_DEC_234 233 |
| 265 | # define NDNBOOST_PP_DEC_235 234 |
| 266 | # define NDNBOOST_PP_DEC_236 235 |
| 267 | # define NDNBOOST_PP_DEC_237 236 |
| 268 | # define NDNBOOST_PP_DEC_238 237 |
| 269 | # define NDNBOOST_PP_DEC_239 238 |
| 270 | # define NDNBOOST_PP_DEC_240 239 |
| 271 | # define NDNBOOST_PP_DEC_241 240 |
| 272 | # define NDNBOOST_PP_DEC_242 241 |
| 273 | # define NDNBOOST_PP_DEC_243 242 |
| 274 | # define NDNBOOST_PP_DEC_244 243 |
| 275 | # define NDNBOOST_PP_DEC_245 244 |
| 276 | # define NDNBOOST_PP_DEC_246 245 |
| 277 | # define NDNBOOST_PP_DEC_247 246 |
| 278 | # define NDNBOOST_PP_DEC_248 247 |
| 279 | # define NDNBOOST_PP_DEC_249 248 |
| 280 | # define NDNBOOST_PP_DEC_250 249 |
| 281 | # define NDNBOOST_PP_DEC_251 250 |
| 282 | # define NDNBOOST_PP_DEC_252 251 |
| 283 | # define NDNBOOST_PP_DEC_253 252 |
| 284 | # define NDNBOOST_PP_DEC_254 253 |
| 285 | # define NDNBOOST_PP_DEC_255 254 |
| 286 | # define NDNBOOST_PP_DEC_256 255 |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 287 | # |
| 288 | # endif |