Files
externals/linux/include/ActivBoost/preprocessor/list/at.hpp
T
2023-12-15 13:15:08 -05:00

40 lines
1.5 KiB
C++

# /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.com
# *
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy at
# * http://www.boost.org/LICENSE_1_0.txt)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http://www.boost.org for most recent version. */
#
# ifndef ACTIV_BOOST_PREPROCESSOR_LIST_AT_HPP
# define ACTIV_BOOST_PREPROCESSOR_LIST_AT_HPP
#
# include <ActivBoost/preprocessor/config/config.hpp>
# include <ActivBoost/preprocessor/list/adt.hpp>
# include <ActivBoost/preprocessor/list/rest_n.hpp>
#
# /* ACTIV_BOOST_PP_LIST_AT */
#
# if ~ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_EDG()
# define ACTIV_BOOST_PP_LIST_AT(list, index) ACTIV_BOOST_PP_LIST_FIRST(ACTIV_BOOST_PP_LIST_REST_N(index, list))
# else
# define ACTIV_BOOST_PP_LIST_AT(list, index) ACTIV_BOOST_PP_LIST_AT_I(list, index)
# define ACTIV_BOOST_PP_LIST_AT_I(list, index) ACTIV_BOOST_PP_LIST_FIRST(ACTIV_BOOST_PP_LIST_REST_N(index, list))
# endif
#
# /* ACTIV_BOOST_PP_LIST_AT_D */
#
# if ~ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_EDG()
# define ACTIV_BOOST_PP_LIST_AT_D(d, list, index) ACTIV_BOOST_PP_LIST_FIRST(ACTIV_BOOST_PP_LIST_REST_N_D(d, index, list))
# else
# define ACTIV_BOOST_PP_LIST_AT_D(d, list, index) ACTIV_BOOST_PP_LIST_AT_D_I(d, list, index)
# define ACTIV_BOOST_PP_LIST_AT_D_I(d, list, index) ACTIV_BOOST_PP_LIST_FIRST(ACTIV_BOOST_PP_LIST_REST_N_D(d, index, list))
# endif
#
# endif