williamr@2
|
1 |
# /* **************************************************************************
|
williamr@2
|
2 |
# * *
|
williamr@2
|
3 |
# * (C) Copyright Paul Mensonides 2002.
|
williamr@2
|
4 |
# * Distributed under the Boost Software License, Version 1.0. (See
|
williamr@2
|
5 |
# * accompanying file LICENSE_1_0.txt or copy at
|
williamr@2
|
6 |
# * http://www.boost.org/LICENSE_1_0.txt)
|
williamr@2
|
7 |
# * *
|
williamr@2
|
8 |
# ************************************************************************** */
|
williamr@2
|
9 |
#
|
williamr@2
|
10 |
# /* See http://www.boost.org for most recent version. */
|
williamr@2
|
11 |
#
|
williamr@2
|
12 |
# ifndef BOOST_PREPROCESSOR_SLOT_DETAIL_DEF_HPP
|
williamr@2
|
13 |
# define BOOST_PREPROCESSOR_SLOT_DETAIL_DEF_HPP
|
williamr@2
|
14 |
#
|
williamr@2
|
15 |
# /* BOOST_PP_SLOT_OFFSET_x */
|
williamr@2
|
16 |
#
|
williamr@2
|
17 |
# define BOOST_PP_SLOT_OFFSET_10(x) (x) % 1000000000UL
|
williamr@2
|
18 |
# define BOOST_PP_SLOT_OFFSET_9(x) BOOST_PP_SLOT_OFFSET_10(x) % 100000000UL
|
williamr@2
|
19 |
# define BOOST_PP_SLOT_OFFSET_8(x) BOOST_PP_SLOT_OFFSET_9(x) % 10000000UL
|
williamr@2
|
20 |
# define BOOST_PP_SLOT_OFFSET_7(x) BOOST_PP_SLOT_OFFSET_8(x) % 1000000UL
|
williamr@2
|
21 |
# define BOOST_PP_SLOT_OFFSET_6(x) BOOST_PP_SLOT_OFFSET_7(x) % 100000UL
|
williamr@2
|
22 |
# define BOOST_PP_SLOT_OFFSET_5(x) BOOST_PP_SLOT_OFFSET_6(x) % 10000UL
|
williamr@2
|
23 |
# define BOOST_PP_SLOT_OFFSET_4(x) BOOST_PP_SLOT_OFFSET_5(x) % 1000UL
|
williamr@2
|
24 |
# define BOOST_PP_SLOT_OFFSET_3(x) BOOST_PP_SLOT_OFFSET_4(x) % 100UL
|
williamr@2
|
25 |
# define BOOST_PP_SLOT_OFFSET_2(x) BOOST_PP_SLOT_OFFSET_3(x) % 10UL
|
williamr@2
|
26 |
#
|
williamr@2
|
27 |
# /* BOOST_PP_SLOT_CC_x */
|
williamr@2
|
28 |
#
|
williamr@2
|
29 |
# define BOOST_PP_SLOT_CC_2(a, b) BOOST_PP_SLOT_CC_2_D(a, b)
|
williamr@2
|
30 |
# define BOOST_PP_SLOT_CC_3(a, b, c) BOOST_PP_SLOT_CC_3_D(a, b, c)
|
williamr@2
|
31 |
# define BOOST_PP_SLOT_CC_4(a, b, c, d) BOOST_PP_SLOT_CC_4_D(a, b, c, d)
|
williamr@2
|
32 |
# define BOOST_PP_SLOT_CC_5(a, b, c, d, e) BOOST_PP_SLOT_CC_5_D(a, b, c, d, e)
|
williamr@2
|
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)
|
williamr@2
|
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)
|
williamr@2
|
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)
|
williamr@2
|
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)
|
williamr@2
|
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)
|
williamr@2
|
38 |
#
|
williamr@2
|
39 |
# define BOOST_PP_SLOT_CC_2_D(a, b) a ## b
|
williamr@2
|
40 |
# define BOOST_PP_SLOT_CC_3_D(a, b, c) a ## b ## c
|
williamr@2
|
41 |
# define BOOST_PP_SLOT_CC_4_D(a, b, c, d) a ## b ## c ## d
|
williamr@2
|
42 |
# define BOOST_PP_SLOT_CC_5_D(a, b, c, d, e) a ## b ## c ## d ## e
|
williamr@2
|
43 |
# define BOOST_PP_SLOT_CC_6_D(a, b, c, d, e, f) a ## b ## c ## d ## e ## f
|
williamr@2
|
44 |
# define BOOST_PP_SLOT_CC_7_D(a, b, c, d, e, f, g) a ## b ## c ## d ## e ## f ## g
|
williamr@2
|
45 |
# define BOOST_PP_SLOT_CC_8_D(a, b, c, d, e, f, g, h) a ## b ## c ## d ## e ## f ## g ## h
|
williamr@2
|
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
|
williamr@2
|
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
|
williamr@2
|
48 |
#
|
williamr@2
|
49 |
# endif
|