forked from boostorg/preprocessor
Updated limit implementation.
This commit is contained in:
@ -11,12 +11,44 @@
|
||||
#
|
||||
# /* See http://www.boost.org for most recent version. */
|
||||
#
|
||||
# include <boost/preprocessor/config/limits.hpp>
|
||||
#
|
||||
# if BOOST_PP_LIMIT_ITERATION == 256
|
||||
# include <boost/preprocessor/iteration/detail/limits/local_256.hpp>
|
||||
# elif BOOST_PP_LIMIT_ITERATION == 512
|
||||
# include <boost/preprocessor/iteration/detail/limits/local_512.hpp>
|
||||
# if !defined(BOOST_PP_LOCAL_LIMITS)
|
||||
# error BOOST_PP_ERROR: local iteration boundaries are not defined
|
||||
# elif !defined(BOOST_PP_LOCAL_MACRO)
|
||||
# error BOOST_PP_ERROR: local iteration target macro is not defined
|
||||
# else
|
||||
# error Incorrect value for the BOOST_PP_LIMIT_ITERATION limit
|
||||
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
|
||||
# define BOOST_PP_LOCAL_S BOOST_PP_TUPLE_ELEM(2, 0, BOOST_PP_LOCAL_LIMITS)
|
||||
# define BOOST_PP_LOCAL_F BOOST_PP_TUPLE_ELEM(2, 1, BOOST_PP_LOCAL_LIMITS)
|
||||
# else
|
||||
# define BOOST_PP_VALUE BOOST_PP_TUPLE_ELEM(2, 0, BOOST_PP_LOCAL_LIMITS)
|
||||
# include <boost/preprocessor/iteration/detail/start.hpp>
|
||||
# define BOOST_PP_VALUE BOOST_PP_TUPLE_ELEM(2, 1, BOOST_PP_LOCAL_LIMITS)
|
||||
# include <boost/preprocessor/iteration/detail/finish.hpp>
|
||||
# define BOOST_PP_LOCAL_S BOOST_PP_LOCAL_SE()
|
||||
# define BOOST_PP_LOCAL_F BOOST_PP_LOCAL_FE()
|
||||
# endif
|
||||
# endif
|
||||
#
|
||||
# if (BOOST_PP_LOCAL_S) > (BOOST_PP_LOCAL_F)
|
||||
# include <boost/preprocessor/iteration/detail/rlocal.hpp>
|
||||
# else
|
||||
#
|
||||
# include <boost/preprocessor/config/limits.hpp>
|
||||
#
|
||||
# if BOOST_PP_LIMIT_ITERATION == 256
|
||||
# include <boost/preprocessor/iteration/detail/limits/local_256.hpp>
|
||||
# elif BOOST_PP_LIMIT_ITERATION == 512
|
||||
# include <boost/preprocessor/iteration/detail/limits/local_256.hpp>
|
||||
# include <boost/preprocessor/iteration/detail/limits/local_512.hpp>
|
||||
# else
|
||||
# error Incorrect value for the BOOST_PP_LIMIT_ITERATION limit
|
||||
# endif
|
||||
#
|
||||
# endif
|
||||
#
|
||||
# undef BOOST_PP_LOCAL_LIMITS
|
||||
#
|
||||
# undef BOOST_PP_LOCAL_S
|
||||
# undef BOOST_PP_LOCAL_F
|
||||
#
|
||||
# undef BOOST_PP_LOCAL_MACRO
|
||||
|
Reference in New Issue
Block a user