Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:05

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 # /* See http://www.boost.org for most recent version. */
0012 #
0013 # ifndef BOOST_PREPROCESSOR_VARIADIC_TO_ARRAY_HPP
0014 # define BOOST_PREPROCESSOR_VARIADIC_TO_ARRAY_HPP
0015 #
0016 # include <boost/preprocessor/config/config.hpp>
0017 # include <boost/preprocessor/control/if.hpp>
0018 # include <boost/preprocessor/tuple/to_array.hpp>
0019 # include <boost/preprocessor/variadic/has_opt.hpp>
0020 # include <boost/preprocessor/variadic/size.hpp>
0021 #
0022 # /* BOOST_PP_VARIADIC_TO_ARRAY */
0023 #
0024 # if BOOST_PP_VARIADIC_HAS_OPT()
0025 #     if BOOST_PP_VARIADICS_MSVC
0026 #         define BOOST_PP_VARIADIC_TO_ARRAY_NON_EMPTY(...) BOOST_PP_TUPLE_TO_ARRAY_2(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__),(__VA_ARGS__))
0027 #     else
0028 #         define BOOST_PP_VARIADIC_TO_ARRAY_NON_EMPTY(...) BOOST_PP_TUPLE_TO_ARRAY((__VA_ARGS__))
0029 #     endif
0030 #     define BOOST_PP_VARIADIC_TO_ARRAY_EMPTY(...) (0,())
0031 #     define BOOST_PP_VARIADIC_TO_ARRAY(...) BOOST_PP_IF(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__),BOOST_PP_VARIADIC_TO_ARRAY_NON_EMPTY,BOOST_PP_VARIADIC_TO_ARRAY_EMPTY)(__VA_ARGS__)
0032 # elif BOOST_PP_VARIADICS_MSVC
0033 #     define BOOST_PP_VARIADIC_TO_ARRAY(...) BOOST_PP_TUPLE_TO_ARRAY_2(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__),(__VA_ARGS__))
0034 # else
0035 #     define BOOST_PP_VARIADIC_TO_ARRAY(...) BOOST_PP_TUPLE_TO_ARRAY((__VA_ARGS__))
0036 # endif
0037 #
0038 # endif