Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-02 08:52:09

0001 # /* **************************************************************************
0002 #  *                                                                          *
0003 #  *     (C) Copyright Edward Diener 2011.                                    *
0004 #  *     (C) Copyright Paul Mensonides 2011.                                  *
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 0011 ">#
0012 # /* See http://www.boost.org for most recent version. */
0013 0014 ">#
0015 # ifndef BOOST_PREPROCESSOR_ARRAY_TO_LIST_HPP
0016 # define BOOST_PREPROCESSOR_ARRAY_TO_LIST_HPP
0017 0018 ">#
0019 # include <boost/preprocessor/cat.hpp>
0020 # include <boost/preprocessor/config/config.hpp>
0021 # include <boost/preprocessor/array/size.hpp>
0022 # include <boost/preprocessor/control/if.hpp>
0023 # include <boost/preprocessor/tuple/to_list.hpp>
0024 0025 ">#
0026 # /* BOOST_PP_ARRAY_TO_LIST */
0027 0028 ">#
0029 #    define BOOST_PP_ARRAY_TO_LIST(array) \
0030         BOOST_PP_IF \
0031             ( \
0032             BOOST_PP_ARRAY_SIZE(array), \
0033             BOOST_PP_ARRAY_TO_LIST_DO, \
0034             BOOST_PP_ARRAY_TO_LIST_EMPTY \
0035             ) \
0036         (array) \
0037 /**/
0038 0039 ">#
0040 #    define BOOST_PP_ARRAY_TO_LIST_EMPTY(array) BOOST_PP_NIL
0041 0042 ">#
0043 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
0044 #    define BOOST_PP_ARRAY_TO_LIST_DO(array) BOOST_PP_ARRAY_TO_LIST_I(BOOST_PP_TUPLE_TO_LIST, array)
0045 #    define BOOST_PP_ARRAY_TO_LIST_I(m, args) BOOST_PP_ARRAY_TO_LIST_II(m, args)
0046 #    define BOOST_PP_ARRAY_TO_LIST_II(m, args) BOOST_PP_CAT(m ## args,)
0047 # elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
0048 #    define BOOST_PP_ARRAY_TO_LIST_DO(array) BOOST_PP_ARRAY_TO_LIST_I(array)
0049 #    define BOOST_PP_ARRAY_TO_LIST_I(array) BOOST_PP_TUPLE_TO_LIST ## array
0050 # else
0051 #    define BOOST_PP_ARRAY_TO_LIST_DO(array) BOOST_PP_TUPLE_TO_LIST array
0052 # endif
0053 0054 ">#
0055 # endif