forked from boostorg/preprocessor
Updated limit implementation.
This commit is contained in:
@ -15,13 +15,48 @@
|
||||
# ifndef BOOST_PREPROCESSOR_TUPLE_EAT_HPP
|
||||
# define BOOST_PREPROCESSOR_TUPLE_EAT_HPP
|
||||
#
|
||||
# include <boost/preprocessor/config/config.hpp>
|
||||
#
|
||||
# /* BOOST_PP_EAT */
|
||||
#
|
||||
# if BOOST_PP_VARIADICS
|
||||
# define BOOST_PP_EAT(...)
|
||||
# else
|
||||
# define BOOST_PP_EAT(x)
|
||||
# endif
|
||||
#
|
||||
# /* BOOST_PP_TUPLE_EAT */
|
||||
#
|
||||
# if BOOST_PP_VARIADICS
|
||||
# define BOOST_PP_TUPLE_EAT(size) BOOST_PP_EAT
|
||||
# else
|
||||
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
|
||||
# define BOOST_PP_TUPLE_EAT(size) BOOST_PP_TUPLE_EAT_I(size)
|
||||
# else
|
||||
# define BOOST_PP_TUPLE_EAT(size) BOOST_PP_TUPLE_EAT_OO((size))
|
||||
# define BOOST_PP_TUPLE_EAT_OO(par) BOOST_PP_TUPLE_EAT_I ## par
|
||||
# endif
|
||||
# define BOOST_PP_TUPLE_EAT_I(size) BOOST_PP_TUPLE_EAT_ ## size
|
||||
# endif
|
||||
#
|
||||
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
|
||||
# define BOOST_PP_TUPLE_EAT_N(size) BOOST_PP_TUPLE_EAT_N_I(size)
|
||||
# else
|
||||
# define BOOST_PP_TUPLE_EAT_N(size) BOOST_PP_TUPLE_EAT_N_OO((size))
|
||||
# define BOOST_PP_TUPLE_EAT_N_OO(par) BOOST_PP_TUPLE_EAT_N_I ## par
|
||||
# endif
|
||||
# define BOOST_PP_TUPLE_EAT_N_I(size) BOOST_PP_TUPLE_EAT_ ## size
|
||||
#
|
||||
# include <boost/preprocessor/config/limits.hpp>
|
||||
#
|
||||
# if BOOST_PP_LIMIT_TUPLE == 64
|
||||
# include <boost/preprocessor/tuple/limits/eat_64.hpp>
|
||||
# elif BOOST_PP_LIMIT_TUPLE == 128
|
||||
# include <boost/preprocessor/tuple/limits/eat_64.hpp>
|
||||
# include <boost/preprocessor/tuple/limits/eat_128.hpp>
|
||||
# elif BOOST_PP_LIMIT_TUPLE == 256
|
||||
# include <boost/preprocessor/tuple/limits/eat_64.hpp>
|
||||
# include <boost/preprocessor/tuple/limits/eat_128.hpp>
|
||||
# include <boost/preprocessor/tuple/limits/eat_256.hpp>
|
||||
# else
|
||||
# error Incorrect value for the BOOST_PP_LIMIT_TUPLE limit
|
||||
|
Reference in New Issue
Block a user