File indexing completed on 2025-01-18 09:50:05
0001 #
0002
0003
0004
0005
0006
0007
0008
0009
0010 #
0011 #
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 #
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