Chris@16
|
1 # /* **************************************************************************
|
Chris@16
|
2 # * *
|
Chris@16
|
3 # * (C) Copyright Paul Mensonides 2002.
|
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 # ifndef BOOST_PREPROCESSOR_SLOT_DETAIL_DEF_HPP
|
Chris@16
|
13 # define BOOST_PREPROCESSOR_SLOT_DETAIL_DEF_HPP
|
Chris@16
|
14 #
|
Chris@16
|
15 # /* BOOST_PP_SLOT_OFFSET_x */
|
Chris@16
|
16 #
|
Chris@16
|
17 # define BOOST_PP_SLOT_OFFSET_10(x) (x) % 1000000000UL
|
Chris@16
|
18 # define BOOST_PP_SLOT_OFFSET_9(x) BOOST_PP_SLOT_OFFSET_10(x) % 100000000UL
|
Chris@16
|
19 # define BOOST_PP_SLOT_OFFSET_8(x) BOOST_PP_SLOT_OFFSET_9(x) % 10000000UL
|
Chris@16
|
20 # define BOOST_PP_SLOT_OFFSET_7(x) BOOST_PP_SLOT_OFFSET_8(x) % 1000000UL
|
Chris@16
|
21 # define BOOST_PP_SLOT_OFFSET_6(x) BOOST_PP_SLOT_OFFSET_7(x) % 100000UL
|
Chris@16
|
22 # define BOOST_PP_SLOT_OFFSET_5(x) BOOST_PP_SLOT_OFFSET_6(x) % 10000UL
|
Chris@16
|
23 # define BOOST_PP_SLOT_OFFSET_4(x) BOOST_PP_SLOT_OFFSET_5(x) % 1000UL
|
Chris@16
|
24 # define BOOST_PP_SLOT_OFFSET_3(x) BOOST_PP_SLOT_OFFSET_4(x) % 100UL
|
Chris@16
|
25 # define BOOST_PP_SLOT_OFFSET_2(x) BOOST_PP_SLOT_OFFSET_3(x) % 10UL
|
Chris@16
|
26 #
|
Chris@16
|
27 # /* BOOST_PP_SLOT_CC_x */
|
Chris@16
|
28 #
|
Chris@16
|
29 # define BOOST_PP_SLOT_CC_2(a, b) BOOST_PP_SLOT_CC_2_D(a, b)
|
Chris@16
|
30 # define BOOST_PP_SLOT_CC_3(a, b, c) BOOST_PP_SLOT_CC_3_D(a, b, c)
|
Chris@16
|
31 # define BOOST_PP_SLOT_CC_4(a, b, c, d) BOOST_PP_SLOT_CC_4_D(a, b, c, d)
|
Chris@16
|
32 # define BOOST_PP_SLOT_CC_5(a, b, c, d, e) BOOST_PP_SLOT_CC_5_D(a, b, c, d, e)
|
Chris@16
|
33 # define BOOST_PP_SLOT_CC_6(a, b, c, d, e, f) BOOST_PP_SLOT_CC_6_D(a, b, c, d, e, f)
|
Chris@16
|
34 # define BOOST_PP_SLOT_CC_7(a, b, c, d, e, f, g) BOOST_PP_SLOT_CC_7_D(a, b, c, d, e, f, g)
|
Chris@16
|
35 # define BOOST_PP_SLOT_CC_8(a, b, c, d, e, f, g, h) BOOST_PP_SLOT_CC_8_D(a, b, c, d, e, f, g, h)
|
Chris@16
|
36 # define BOOST_PP_SLOT_CC_9(a, b, c, d, e, f, g, h, i) BOOST_PP_SLOT_CC_9_D(a, b, c, d, e, f, g, h, i)
|
Chris@16
|
37 # define BOOST_PP_SLOT_CC_10(a, b, c, d, e, f, g, h, i, j) BOOST_PP_SLOT_CC_10_D(a, b, c, d, e, f, g, h, i, j)
|
Chris@16
|
38 #
|
Chris@16
|
39 # define BOOST_PP_SLOT_CC_2_D(a, b) a ## b
|
Chris@16
|
40 # define BOOST_PP_SLOT_CC_3_D(a, b, c) a ## b ## c
|
Chris@16
|
41 # define BOOST_PP_SLOT_CC_4_D(a, b, c, d) a ## b ## c ## d
|
Chris@16
|
42 # define BOOST_PP_SLOT_CC_5_D(a, b, c, d, e) a ## b ## c ## d ## e
|
Chris@16
|
43 # define BOOST_PP_SLOT_CC_6_D(a, b, c, d, e, f) a ## b ## c ## d ## e ## f
|
Chris@16
|
44 # define BOOST_PP_SLOT_CC_7_D(a, b, c, d, e, f, g) a ## b ## c ## d ## e ## f ## g
|
Chris@16
|
45 # define BOOST_PP_SLOT_CC_8_D(a, b, c, d, e, f, g, h) a ## b ## c ## d ## e ## f ## g ## h
|
Chris@16
|
46 # define BOOST_PP_SLOT_CC_9_D(a, b, c, d, e, f, g, h, i) a ## b ## c ## d ## e ## f ## g ## h ## i
|
Chris@16
|
47 # define BOOST_PP_SLOT_CC_10_D(a, b, c, d, e, f, g, h, i, j) a ## b ## c ## d ## e ## f ## g ## h ## i ## j
|
Chris@16
|
48 #
|
Chris@16
|
49 # endif
|