annotate DEPENDENCIES/generic/include/boost/preprocessor/slot/detail/counter.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 # /* **************************************************************************
Chris@16 2 # * *
Chris@16 3 # * (C) Copyright Paul Mensonides 2005. *
Chris@16 4 # * Distributed under the Boost Software License, Version 1.0. (See *
Chris@16 5 # * accompanying file LICENSE_1_0.txt or copy at *
Chris@16 6 # * http://www.boost.org/LICENSE_1_0.txt) *
Chris@16 7 # * *
Chris@16 8 # ************************************************************************** */
Chris@16 9 #
Chris@16 10 # /* See http://www.boost.org for most recent version. */
Chris@16 11 #
Chris@16 12 # define BOOST_PP_VALUE BOOST_PP_COUNTER + 1
Chris@16 13 #
Chris@16 14 # include <boost/preprocessor/slot/detail/shared.hpp>
Chris@16 15 #
Chris@16 16 # undef BOOST_PP_COUNTER
Chris@16 17 #
Chris@16 18 # undef BOOST_PP_COUNTER_DIGIT_1
Chris@16 19 # undef BOOST_PP_COUNTER_DIGIT_2
Chris@16 20 # undef BOOST_PP_COUNTER_DIGIT_3
Chris@16 21 # undef BOOST_PP_COUNTER_DIGIT_4
Chris@16 22 # undef BOOST_PP_COUNTER_DIGIT_5
Chris@16 23 # undef BOOST_PP_COUNTER_DIGIT_6
Chris@16 24 # undef BOOST_PP_COUNTER_DIGIT_7
Chris@16 25 # undef BOOST_PP_COUNTER_DIGIT_8
Chris@16 26 # undef BOOST_PP_COUNTER_DIGIT_9
Chris@16 27 # undef BOOST_PP_COUNTER_DIGIT_10
Chris@16 28 #
Chris@16 29 # if BOOST_PP_SLOT_TEMP_10 == 0
Chris@16 30 # define BOOST_PP_COUNTER_DIGIT_10 0
Chris@16 31 # elif BOOST_PP_SLOT_TEMP_10 == 1
Chris@16 32 # define BOOST_PP_COUNTER_DIGIT_10 1
Chris@16 33 # elif BOOST_PP_SLOT_TEMP_10 == 2
Chris@16 34 # define BOOST_PP_COUNTER_DIGIT_10 2
Chris@16 35 # elif BOOST_PP_SLOT_TEMP_10 == 3
Chris@16 36 # define BOOST_PP_COUNTER_DIGIT_10 3
Chris@16 37 # elif BOOST_PP_SLOT_TEMP_10 == 4
Chris@16 38 # define BOOST_PP_COUNTER_DIGIT_10 4
Chris@16 39 # elif BOOST_PP_SLOT_TEMP_10 == 5
Chris@16 40 # define BOOST_PP_COUNTER_DIGIT_10 5
Chris@16 41 # elif BOOST_PP_SLOT_TEMP_10 == 6
Chris@16 42 # define BOOST_PP_COUNTER_DIGIT_10 6
Chris@16 43 # elif BOOST_PP_SLOT_TEMP_10 == 7
Chris@16 44 # define BOOST_PP_COUNTER_DIGIT_10 7
Chris@16 45 # elif BOOST_PP_SLOT_TEMP_10 == 8
Chris@16 46 # define BOOST_PP_COUNTER_DIGIT_10 8
Chris@16 47 # elif BOOST_PP_SLOT_TEMP_10 == 9
Chris@16 48 # define BOOST_PP_COUNTER_DIGIT_10 9
Chris@16 49 # endif
Chris@16 50 #
Chris@16 51 # if BOOST_PP_SLOT_TEMP_9 == 0
Chris@16 52 # define BOOST_PP_COUNTER_DIGIT_9 0
Chris@16 53 # elif BOOST_PP_SLOT_TEMP_9 == 1
Chris@16 54 # define BOOST_PP_COUNTER_DIGIT_9 1
Chris@16 55 # elif BOOST_PP_SLOT_TEMP_9 == 2
Chris@16 56 # define BOOST_PP_COUNTER_DIGIT_9 2
Chris@16 57 # elif BOOST_PP_SLOT_TEMP_9 == 3
Chris@16 58 # define BOOST_PP_COUNTER_DIGIT_9 3
Chris@16 59 # elif BOOST_PP_SLOT_TEMP_9 == 4
Chris@16 60 # define BOOST_PP_COUNTER_DIGIT_9 4
Chris@16 61 # elif BOOST_PP_SLOT_TEMP_9 == 5
Chris@16 62 # define BOOST_PP_COUNTER_DIGIT_9 5
Chris@16 63 # elif BOOST_PP_SLOT_TEMP_9 == 6
Chris@16 64 # define BOOST_PP_COUNTER_DIGIT_9 6
Chris@16 65 # elif BOOST_PP_SLOT_TEMP_9 == 7
Chris@16 66 # define BOOST_PP_COUNTER_DIGIT_9 7
Chris@16 67 # elif BOOST_PP_SLOT_TEMP_9 == 8
Chris@16 68 # define BOOST_PP_COUNTER_DIGIT_9 8
Chris@16 69 # elif BOOST_PP_SLOT_TEMP_9 == 9
Chris@16 70 # define BOOST_PP_COUNTER_DIGIT_9 9
Chris@16 71 # endif
Chris@16 72 #
Chris@16 73 # if BOOST_PP_SLOT_TEMP_8 == 0
Chris@16 74 # define BOOST_PP_COUNTER_DIGIT_8 0
Chris@16 75 # elif BOOST_PP_SLOT_TEMP_8 == 1
Chris@16 76 # define BOOST_PP_COUNTER_DIGIT_8 1
Chris@16 77 # elif BOOST_PP_SLOT_TEMP_8 == 2
Chris@16 78 # define BOOST_PP_COUNTER_DIGIT_8 2
Chris@16 79 # elif BOOST_PP_SLOT_TEMP_8 == 3
Chris@16 80 # define BOOST_PP_COUNTER_DIGIT_8 3
Chris@16 81 # elif BOOST_PP_SLOT_TEMP_8 == 4
Chris@16 82 # define BOOST_PP_COUNTER_DIGIT_8 4
Chris@16 83 # elif BOOST_PP_SLOT_TEMP_8 == 5
Chris@16 84 # define BOOST_PP_COUNTER_DIGIT_8 5
Chris@16 85 # elif BOOST_PP_SLOT_TEMP_8 == 6
Chris@16 86 # define BOOST_PP_COUNTER_DIGIT_8 6
Chris@16 87 # elif BOOST_PP_SLOT_TEMP_8 == 7
Chris@16 88 # define BOOST_PP_COUNTER_DIGIT_8 7
Chris@16 89 # elif BOOST_PP_SLOT_TEMP_8 == 8
Chris@16 90 # define BOOST_PP_COUNTER_DIGIT_8 8
Chris@16 91 # elif BOOST_PP_SLOT_TEMP_8 == 9
Chris@16 92 # define BOOST_PP_COUNTER_DIGIT_8 9
Chris@16 93 # endif
Chris@16 94 #
Chris@16 95 # if BOOST_PP_SLOT_TEMP_7 == 0
Chris@16 96 # define BOOST_PP_COUNTER_DIGIT_7 0
Chris@16 97 # elif BOOST_PP_SLOT_TEMP_7 == 1
Chris@16 98 # define BOOST_PP_COUNTER_DIGIT_7 1
Chris@16 99 # elif BOOST_PP_SLOT_TEMP_7 == 2
Chris@16 100 # define BOOST_PP_COUNTER_DIGIT_7 2
Chris@16 101 # elif BOOST_PP_SLOT_TEMP_7 == 3
Chris@16 102 # define BOOST_PP_COUNTER_DIGIT_7 3
Chris@16 103 # elif BOOST_PP_SLOT_TEMP_7 == 4
Chris@16 104 # define BOOST_PP_COUNTER_DIGIT_7 4
Chris@16 105 # elif BOOST_PP_SLOT_TEMP_7 == 5
Chris@16 106 # define BOOST_PP_COUNTER_DIGIT_7 5
Chris@16 107 # elif BOOST_PP_SLOT_TEMP_7 == 6
Chris@16 108 # define BOOST_PP_COUNTER_DIGIT_7 6
Chris@16 109 # elif BOOST_PP_SLOT_TEMP_7 == 7
Chris@16 110 # define BOOST_PP_COUNTER_DIGIT_7 7
Chris@16 111 # elif BOOST_PP_SLOT_TEMP_7 == 8
Chris@16 112 # define BOOST_PP_COUNTER_DIGIT_7 8
Chris@16 113 # elif BOOST_PP_SLOT_TEMP_7 == 9
Chris@16 114 # define BOOST_PP_COUNTER_DIGIT_7 9
Chris@16 115 # endif
Chris@16 116 #
Chris@16 117 # if BOOST_PP_SLOT_TEMP_6 == 0
Chris@16 118 # define BOOST_PP_COUNTER_DIGIT_6 0
Chris@16 119 # elif BOOST_PP_SLOT_TEMP_6 == 1
Chris@16 120 # define BOOST_PP_COUNTER_DIGIT_6 1
Chris@16 121 # elif BOOST_PP_SLOT_TEMP_6 == 2
Chris@16 122 # define BOOST_PP_COUNTER_DIGIT_6 2
Chris@16 123 # elif BOOST_PP_SLOT_TEMP_6 == 3
Chris@16 124 # define BOOST_PP_COUNTER_DIGIT_6 3
Chris@16 125 # elif BOOST_PP_SLOT_TEMP_6 == 4
Chris@16 126 # define BOOST_PP_COUNTER_DIGIT_6 4
Chris@16 127 # elif BOOST_PP_SLOT_TEMP_6 == 5
Chris@16 128 # define BOOST_PP_COUNTER_DIGIT_6 5
Chris@16 129 # elif BOOST_PP_SLOT_TEMP_6 == 6
Chris@16 130 # define BOOST_PP_COUNTER_DIGIT_6 6
Chris@16 131 # elif BOOST_PP_SLOT_TEMP_6 == 7
Chris@16 132 # define BOOST_PP_COUNTER_DIGIT_6 7
Chris@16 133 # elif BOOST_PP_SLOT_TEMP_6 == 8
Chris@16 134 # define BOOST_PP_COUNTER_DIGIT_6 8
Chris@16 135 # elif BOOST_PP_SLOT_TEMP_6 == 9
Chris@16 136 # define BOOST_PP_COUNTER_DIGIT_6 9
Chris@16 137 # endif
Chris@16 138 #
Chris@16 139 # if BOOST_PP_SLOT_TEMP_5 == 0
Chris@16 140 # define BOOST_PP_COUNTER_DIGIT_5 0
Chris@16 141 # elif BOOST_PP_SLOT_TEMP_5 == 1
Chris@16 142 # define BOOST_PP_COUNTER_DIGIT_5 1
Chris@16 143 # elif BOOST_PP_SLOT_TEMP_5 == 2
Chris@16 144 # define BOOST_PP_COUNTER_DIGIT_5 2
Chris@16 145 # elif BOOST_PP_SLOT_TEMP_5 == 3
Chris@16 146 # define BOOST_PP_COUNTER_DIGIT_5 3
Chris@16 147 # elif BOOST_PP_SLOT_TEMP_5 == 4
Chris@16 148 # define BOOST_PP_COUNTER_DIGIT_5 4
Chris@16 149 # elif BOOST_PP_SLOT_TEMP_5 == 5
Chris@16 150 # define BOOST_PP_COUNTER_DIGIT_5 5
Chris@16 151 # elif BOOST_PP_SLOT_TEMP_5 == 6
Chris@16 152 # define BOOST_PP_COUNTER_DIGIT_5 6
Chris@16 153 # elif BOOST_PP_SLOT_TEMP_5 == 7
Chris@16 154 # define BOOST_PP_COUNTER_DIGIT_5 7
Chris@16 155 # elif BOOST_PP_SLOT_TEMP_5 == 8
Chris@16 156 # define BOOST_PP_COUNTER_DIGIT_5 8
Chris@16 157 # elif BOOST_PP_SLOT_TEMP_5 == 9
Chris@16 158 # define BOOST_PP_COUNTER_DIGIT_5 9
Chris@16 159 # endif
Chris@16 160 #
Chris@16 161 # if BOOST_PP_SLOT_TEMP_4 == 0
Chris@16 162 # define BOOST_PP_COUNTER_DIGIT_4 0
Chris@16 163 # elif BOOST_PP_SLOT_TEMP_4 == 1
Chris@16 164 # define BOOST_PP_COUNTER_DIGIT_4 1
Chris@16 165 # elif BOOST_PP_SLOT_TEMP_4 == 2
Chris@16 166 # define BOOST_PP_COUNTER_DIGIT_4 2
Chris@16 167 # elif BOOST_PP_SLOT_TEMP_4 == 3
Chris@16 168 # define BOOST_PP_COUNTER_DIGIT_4 3
Chris@16 169 # elif BOOST_PP_SLOT_TEMP_4 == 4
Chris@16 170 # define BOOST_PP_COUNTER_DIGIT_4 4
Chris@16 171 # elif BOOST_PP_SLOT_TEMP_4 == 5
Chris@16 172 # define BOOST_PP_COUNTER_DIGIT_4 5
Chris@16 173 # elif BOOST_PP_SLOT_TEMP_4 == 6
Chris@16 174 # define BOOST_PP_COUNTER_DIGIT_4 6
Chris@16 175 # elif BOOST_PP_SLOT_TEMP_4 == 7
Chris@16 176 # define BOOST_PP_COUNTER_DIGIT_4 7
Chris@16 177 # elif BOOST_PP_SLOT_TEMP_4 == 8
Chris@16 178 # define BOOST_PP_COUNTER_DIGIT_4 8
Chris@16 179 # elif BOOST_PP_SLOT_TEMP_4 == 9
Chris@16 180 # define BOOST_PP_COUNTER_DIGIT_4 9
Chris@16 181 # endif
Chris@16 182 #
Chris@16 183 # if BOOST_PP_SLOT_TEMP_3 == 0
Chris@16 184 # define BOOST_PP_COUNTER_DIGIT_3 0
Chris@16 185 # elif BOOST_PP_SLOT_TEMP_3 == 1
Chris@16 186 # define BOOST_PP_COUNTER_DIGIT_3 1
Chris@16 187 # elif BOOST_PP_SLOT_TEMP_3 == 2
Chris@16 188 # define BOOST_PP_COUNTER_DIGIT_3 2
Chris@16 189 # elif BOOST_PP_SLOT_TEMP_3 == 3
Chris@16 190 # define BOOST_PP_COUNTER_DIGIT_3 3
Chris@16 191 # elif BOOST_PP_SLOT_TEMP_3 == 4
Chris@16 192 # define BOOST_PP_COUNTER_DIGIT_3 4
Chris@16 193 # elif BOOST_PP_SLOT_TEMP_3 == 5
Chris@16 194 # define BOOST_PP_COUNTER_DIGIT_3 5
Chris@16 195 # elif BOOST_PP_SLOT_TEMP_3 == 6
Chris@16 196 # define BOOST_PP_COUNTER_DIGIT_3 6
Chris@16 197 # elif BOOST_PP_SLOT_TEMP_3 == 7
Chris@16 198 # define BOOST_PP_COUNTER_DIGIT_3 7
Chris@16 199 # elif BOOST_PP_SLOT_TEMP_3 == 8
Chris@16 200 # define BOOST_PP_COUNTER_DIGIT_3 8
Chris@16 201 # elif BOOST_PP_SLOT_TEMP_3 == 9
Chris@16 202 # define BOOST_PP_COUNTER_DIGIT_3 9
Chris@16 203 # endif
Chris@16 204 #
Chris@16 205 # if BOOST_PP_SLOT_TEMP_2 == 0
Chris@16 206 # define BOOST_PP_COUNTER_DIGIT_2 0
Chris@16 207 # elif BOOST_PP_SLOT_TEMP_2 == 1
Chris@16 208 # define BOOST_PP_COUNTER_DIGIT_2 1
Chris@16 209 # elif BOOST_PP_SLOT_TEMP_2 == 2
Chris@16 210 # define BOOST_PP_COUNTER_DIGIT_2 2
Chris@16 211 # elif BOOST_PP_SLOT_TEMP_2 == 3
Chris@16 212 # define BOOST_PP_COUNTER_DIGIT_2 3
Chris@16 213 # elif BOOST_PP_SLOT_TEMP_2 == 4
Chris@16 214 # define BOOST_PP_COUNTER_DIGIT_2 4
Chris@16 215 # elif BOOST_PP_SLOT_TEMP_2 == 5
Chris@16 216 # define BOOST_PP_COUNTER_DIGIT_2 5
Chris@16 217 # elif BOOST_PP_SLOT_TEMP_2 == 6
Chris@16 218 # define BOOST_PP_COUNTER_DIGIT_2 6
Chris@16 219 # elif BOOST_PP_SLOT_TEMP_2 == 7
Chris@16 220 # define BOOST_PP_COUNTER_DIGIT_2 7
Chris@16 221 # elif BOOST_PP_SLOT_TEMP_2 == 8
Chris@16 222 # define BOOST_PP_COUNTER_DIGIT_2 8
Chris@16 223 # elif BOOST_PP_SLOT_TEMP_2 == 9
Chris@16 224 # define BOOST_PP_COUNTER_DIGIT_2 9
Chris@16 225 # endif
Chris@16 226 #
Chris@16 227 # if BOOST_PP_SLOT_TEMP_1 == 0
Chris@16 228 # define BOOST_PP_COUNTER_DIGIT_1 0
Chris@16 229 # elif BOOST_PP_SLOT_TEMP_1 == 1
Chris@16 230 # define BOOST_PP_COUNTER_DIGIT_1 1
Chris@16 231 # elif BOOST_PP_SLOT_TEMP_1 == 2
Chris@16 232 # define BOOST_PP_COUNTER_DIGIT_1 2
Chris@16 233 # elif BOOST_PP_SLOT_TEMP_1 == 3
Chris@16 234 # define BOOST_PP_COUNTER_DIGIT_1 3
Chris@16 235 # elif BOOST_PP_SLOT_TEMP_1 == 4
Chris@16 236 # define BOOST_PP_COUNTER_DIGIT_1 4
Chris@16 237 # elif BOOST_PP_SLOT_TEMP_1 == 5
Chris@16 238 # define BOOST_PP_COUNTER_DIGIT_1 5
Chris@16 239 # elif BOOST_PP_SLOT_TEMP_1 == 6
Chris@16 240 # define BOOST_PP_COUNTER_DIGIT_1 6
Chris@16 241 # elif BOOST_PP_SLOT_TEMP_1 == 7
Chris@16 242 # define BOOST_PP_COUNTER_DIGIT_1 7
Chris@16 243 # elif BOOST_PP_SLOT_TEMP_1 == 8
Chris@16 244 # define BOOST_PP_COUNTER_DIGIT_1 8
Chris@16 245 # elif BOOST_PP_SLOT_TEMP_1 == 9
Chris@16 246 # define BOOST_PP_COUNTER_DIGIT_1 9
Chris@16 247 # endif
Chris@16 248 #
Chris@16 249 # if BOOST_PP_COUNTER_DIGIT_10
Chris@16 250 # define BOOST_PP_COUNTER BOOST_PP_SLOT_CC_10(BOOST_PP_COUNTER_DIGIT_10, BOOST_PP_COUNTER_DIGIT_9, BOOST_PP_COUNTER_DIGIT_8, BOOST_PP_COUNTER_DIGIT_7, BOOST_PP_COUNTER_DIGIT_6, BOOST_PP_COUNTER_DIGIT_5, BOOST_PP_COUNTER_DIGIT_4, BOOST_PP_COUNTER_DIGIT_3, BOOST_PP_COUNTER_DIGIT_2, BOOST_PP_COUNTER_DIGIT_1)
Chris@16 251 # elif BOOST_PP_COUNTER_DIGIT_9
Chris@16 252 # define BOOST_PP_COUNTER BOOST_PP_SLOT_CC_9(BOOST_PP_COUNTER_DIGIT_9, BOOST_PP_COUNTER_DIGIT_8, BOOST_PP_COUNTER_DIGIT_7, BOOST_PP_COUNTER_DIGIT_6, BOOST_PP_COUNTER_DIGIT_5, BOOST_PP_COUNTER_DIGIT_4, BOOST_PP_COUNTER_DIGIT_3, BOOST_PP_COUNTER_DIGIT_2, BOOST_PP_COUNTER_DIGIT_1)
Chris@16 253 # elif BOOST_PP_COUNTER_DIGIT_8
Chris@16 254 # define BOOST_PP_COUNTER BOOST_PP_SLOT_CC_8(BOOST_PP_COUNTER_DIGIT_8, BOOST_PP_COUNTER_DIGIT_7, BOOST_PP_COUNTER_DIGIT_6, BOOST_PP_COUNTER_DIGIT_5, BOOST_PP_COUNTER_DIGIT_4, BOOST_PP_COUNTER_DIGIT_3, BOOST_PP_COUNTER_DIGIT_2, BOOST_PP_COUNTER_DIGIT_1)
Chris@16 255 # elif BOOST_PP_COUNTER_DIGIT_7
Chris@16 256 # define BOOST_PP_COUNTER BOOST_PP_SLOT_CC_7(BOOST_PP_COUNTER_DIGIT_7, BOOST_PP_COUNTER_DIGIT_6, BOOST_PP_COUNTER_DIGIT_5, BOOST_PP_COUNTER_DIGIT_4, BOOST_PP_COUNTER_DIGIT_3, BOOST_PP_COUNTER_DIGIT_2, BOOST_PP_COUNTER_DIGIT_1)
Chris@16 257 # elif BOOST_PP_COUNTER_DIGIT_6
Chris@16 258 # define BOOST_PP_COUNTER BOOST_PP_SLOT_CC_6(BOOST_PP_COUNTER_DIGIT_6, BOOST_PP_COUNTER_DIGIT_5, BOOST_PP_COUNTER_DIGIT_4, BOOST_PP_COUNTER_DIGIT_3, BOOST_PP_COUNTER_DIGIT_2, BOOST_PP_COUNTER_DIGIT_1)
Chris@16 259 # elif BOOST_PP_COUNTER_DIGIT_5
Chris@16 260 # define BOOST_PP_COUNTER BOOST_PP_SLOT_CC_5(BOOST_PP_COUNTER_DIGIT_5, BOOST_PP_COUNTER_DIGIT_4, BOOST_PP_COUNTER_DIGIT_3, BOOST_PP_COUNTER_DIGIT_2, BOOST_PP_COUNTER_DIGIT_1)
Chris@16 261 # elif BOOST_PP_COUNTER_DIGIT_4
Chris@16 262 # define BOOST_PP_COUNTER BOOST_PP_SLOT_CC_4(BOOST_PP_COUNTER_DIGIT_4, BOOST_PP_COUNTER_DIGIT_3, BOOST_PP_COUNTER_DIGIT_2, BOOST_PP_COUNTER_DIGIT_1)
Chris@16 263 # elif BOOST_PP_COUNTER_DIGIT_3
Chris@16 264 # define BOOST_PP_COUNTER BOOST_PP_SLOT_CC_3(BOOST_PP_COUNTER_DIGIT_3, BOOST_PP_COUNTER_DIGIT_2, BOOST_PP_COUNTER_DIGIT_1)
Chris@16 265 # elif BOOST_PP_COUNTER_DIGIT_2
Chris@16 266 # define BOOST_PP_COUNTER BOOST_PP_SLOT_CC_2(BOOST_PP_COUNTER_DIGIT_2, BOOST_PP_COUNTER_DIGIT_1)
Chris@16 267 # else
Chris@16 268 # define BOOST_PP_COUNTER BOOST_PP_COUNTER_DIGIT_1
Chris@16 269 # endif