forked from boostorg/preprocessor
Special processing when "empty" single element .
This commit is contained in:
@ -15,11 +15,33 @@
|
|||||||
# include <boost/preprocessor/config/config.hpp>
|
# include <boost/preprocessor/config/config.hpp>
|
||||||
# include <boost/preprocessor/tuple/rem.hpp>
|
# include <boost/preprocessor/tuple/rem.hpp>
|
||||||
# include <boost/preprocessor/control/if.hpp>
|
# include <boost/preprocessor/control/if.hpp>
|
||||||
|
# include <boost/preprocessor/control/iif.hpp>
|
||||||
|
# include <boost/preprocessor/facilities/is_1.hpp>
|
||||||
#
|
#
|
||||||
# /* BOOST_PP_ARRAY_DETAIL_GET_DATA */
|
# /* BOOST_PP_ARRAY_DETAIL_GET_DATA */
|
||||||
#
|
#
|
||||||
# define BOOST_PP_ARRAY_DETAIL_GET_DATA_NONE(size, data)
|
# define BOOST_PP_ARRAY_DETAIL_GET_DATA_NONE(size, data)
|
||||||
|
|
||||||
|
# if BOOST_PP_VARIADICS && !(BOOST_PP_VARIADICS_MSVC && _MSC_VER <= 1400)
|
||||||
|
# if BOOST_PP_VARIADICS_MSVC
|
||||||
|
# define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_DEFAULT(size, data) BOOST_PP_TUPLE_REM(size) data
|
||||||
|
# define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_CAT(size, data) BOOST_PP_TUPLE_REM_CAT(size) data
|
||||||
|
# define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY(size, data) \
|
||||||
|
BOOST_PP_IIF \
|
||||||
|
( \
|
||||||
|
BOOST_PP_IS_1(size), \
|
||||||
|
BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_CAT, \
|
||||||
|
BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_DEFAULT \
|
||||||
|
) \
|
||||||
|
(size,data) \
|
||||||
|
/**/
|
||||||
|
# else
|
||||||
# define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY(size, data) BOOST_PP_TUPLE_REM(size) data
|
# define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY(size, data) BOOST_PP_TUPLE_REM(size) data
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY(size, data) BOOST_PP_TUPLE_REM(size) data
|
||||||
|
# endif
|
||||||
|
|
||||||
# define BOOST_PP_ARRAY_DETAIL_GET_DATA(size, data) \
|
# define BOOST_PP_ARRAY_DETAIL_GET_DATA(size, data) \
|
||||||
BOOST_PP_IF \
|
BOOST_PP_IF \
|
||||||
( \
|
( \
|
||||||
|
Reference in New Issue
Block a user