Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:52

0001 # /* Copyright (C) 2001
0002 #  * Housemarque Oy
0003 #  * http://www.housemarque.com
0004 #  *
0005 #  * Distributed under the Boost Software License, Version 1.0. (See
0006 #  * accompanying file LICENSE_1_0.txt or copy at
0007 #  * http://www.boost.org/LICENSE_1_0.txt)
0008 #  */
0009 #
0010 # /* Revised by Paul Mensonides (2002) */
0011 #
0012 # /* See http://www.boost.org for most recent version. */
0013 #
0014 # ifndef BOOST_PREPROCESSOR_LIST_TO_TUPLE_HPP
0015 # define BOOST_PREPROCESSOR_LIST_TO_TUPLE_HPP
0016 #
0017 # include <boost/preprocessor/config/config.hpp>
0018 # include <boost/preprocessor/list/enum.hpp>
0019 # include <boost/preprocessor/control/iif.hpp>
0020 #
0021 # /* BOOST_PP_LIST_TO_TUPLE */
0022 #
0023 # define BOOST_PP_LIST_TO_TUPLE(list) \
0024     BOOST_PP_IIF \
0025         ( \
0026         BOOST_PP_LIST_IS_NIL(list), \
0027         BOOST_PP_LIST_TO_TUPLE_EMPTY, \
0028         BOOST_PP_LIST_TO_TUPLE_DO \
0029         ) \
0030     (list) \
0031 /**/
0032 # define BOOST_PP_LIST_TO_TUPLE_EMPTY(list)
0033 #
0034 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0035 #    define BOOST_PP_LIST_TO_TUPLE_DO(list) (BOOST_PP_LIST_ENUM(list))
0036 # else
0037 #    define BOOST_PP_LIST_TO_TUPLE_DO(list) BOOST_PP_LIST_TO_TUPLE_I(list)
0038 #    define BOOST_PP_LIST_TO_TUPLE_I(list) (BOOST_PP_LIST_ENUM(list))
0039 # endif
0040 #
0041 # /* BOOST_PP_LIST_TO_TUPLE_R */
0042 #
0043 # define BOOST_PP_LIST_TO_TUPLE_R(r, list) \
0044     BOOST_PP_IIF \
0045         ( \
0046         BOOST_PP_LIST_IS_NIL(list), \
0047         BOOST_PP_LIST_TO_TUPLE_R_EMPTY, \
0048         BOOST_PP_LIST_TO_TUPLE_R_DO \
0049         ) \
0050     (r, list) \
0051 /**/
0052 # define BOOST_PP_LIST_TO_TUPLE_R_EMPTY(r,list)
0053 #
0054 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0055 #    define BOOST_PP_LIST_TO_TUPLE_R_DO(r, list) (BOOST_PP_LIST_ENUM_R(r, list))
0056 # else
0057 #    define BOOST_PP_LIST_TO_TUPLE_R_DO(r, list) BOOST_PP_LIST_TO_TUPLE_R_I(r, list)
0058 #    define BOOST_PP_LIST_TO_TUPLE_R_I(r, list) (BOOST_PP_LIST_ENUM_R(r, list))
0059 # endif
0060 #
0061 # endif