williamr@2
|
1 |
# /* Copyright (C) 2001
|
williamr@2
|
2 |
# * Housemarque Oy
|
williamr@2
|
3 |
# * http://www.housemarque.com
|
williamr@2
|
4 |
# *
|
williamr@2
|
5 |
# * Distributed under the Boost Software License, Version 1.0. (See
|
williamr@2
|
6 |
# * accompanying file LICENSE_1_0.txt or copy at
|
williamr@2
|
7 |
# * http://www.boost.org/LICENSE_1_0.txt)
|
williamr@2
|
8 |
# */
|
williamr@2
|
9 |
#
|
williamr@2
|
10 |
# /* Revised by Paul Mensonides (2002) */
|
williamr@2
|
11 |
#
|
williamr@2
|
12 |
# /* See http://www.boost.org for most recent version. */
|
williamr@2
|
13 |
#
|
williamr@2
|
14 |
# ifndef BOOST_PREPROCESSOR_LIST_AT_HPP
|
williamr@2
|
15 |
# define BOOST_PREPROCESSOR_LIST_AT_HPP
|
williamr@2
|
16 |
#
|
williamr@2
|
17 |
# include <boost/preprocessor/config/config.hpp>
|
williamr@2
|
18 |
# include <boost/preprocessor/list/adt.hpp>
|
williamr@2
|
19 |
# include <boost/preprocessor/list/rest_n.hpp>
|
williamr@2
|
20 |
#
|
williamr@2
|
21 |
# /* BOOST_PP_LIST_AT */
|
williamr@2
|
22 |
#
|
williamr@2
|
23 |
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
|
williamr@2
|
24 |
# define BOOST_PP_LIST_AT(list, index) BOOST_PP_LIST_FIRST(BOOST_PP_LIST_REST_N(index, list))
|
williamr@2
|
25 |
# else
|
williamr@2
|
26 |
# define BOOST_PP_LIST_AT(list, index) BOOST_PP_LIST_AT_I(list, index)
|
williamr@2
|
27 |
# define BOOST_PP_LIST_AT_I(list, index) BOOST_PP_LIST_FIRST(BOOST_PP_LIST_REST_N(index, list))
|
williamr@2
|
28 |
# endif
|
williamr@2
|
29 |
#
|
williamr@2
|
30 |
# /* BOOST_PP_LIST_AT_D */
|
williamr@2
|
31 |
#
|
williamr@2
|
32 |
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
|
williamr@2
|
33 |
# define BOOST_PP_LIST_AT_D(d, list, index) BOOST_PP_LIST_FIRST(BOOST_PP_LIST_REST_N_D(d, index, list))
|
williamr@2
|
34 |
# else
|
williamr@2
|
35 |
# define BOOST_PP_LIST_AT_D(d, list, index) BOOST_PP_LIST_AT_D_I(d, list, index)
|
williamr@2
|
36 |
# define BOOST_PP_LIST_AT_D_I(d, list, index) BOOST_PP_LIST_FIRST(BOOST_PP_LIST_REST_N_D(d, index, list))
|
williamr@2
|
37 |
# endif
|
williamr@2
|
38 |
#
|
williamr@2
|
39 |
# endif
|