forked from boostorg/preprocessor
Updated limit implementation.
This commit is contained in:
@ -14,14 +14,41 @@
|
||||
# ifndef BOOST_PREPROCESSOR_SEQ_FOLD_RIGHT_HPP
|
||||
# define BOOST_PREPROCESSOR_SEQ_FOLD_RIGHT_HPP
|
||||
#
|
||||
# include <boost/preprocessor/cat.hpp>
|
||||
# include <boost/preprocessor/detail/auto_rec.hpp>
|
||||
# include <boost/preprocessor/seq/fold_left.hpp>
|
||||
# include <boost/preprocessor/seq/reverse.hpp>
|
||||
# include <boost/preprocessor/seq/seq.hpp>
|
||||
#
|
||||
# /* BOOST_PP_SEQ_FOLD_RIGHT */
|
||||
#
|
||||
# if 0
|
||||
# define BOOST_PP_SEQ_FOLD_RIGHT(op, state, seq) ...
|
||||
# endif
|
||||
#
|
||||
# include <boost/preprocessor/config/limits.hpp>
|
||||
#
|
||||
# if BOOST_PP_LIMIT_SEQ == 256
|
||||
# include <boost/preprocessor/seq/limits/fold_right_256.hpp>
|
||||
#
|
||||
# define BOOST_PP_SEQ_FOLD_RIGHT BOOST_PP_CAT(BOOST_PP_SEQ_FOLD_RIGHT_, BOOST_PP_AUTO_REC(BOOST_PP_SEQ_FOLD_LEFT_P, 256))
|
||||
#
|
||||
# define BOOST_PP_SEQ_FOLD_RIGHT_257(op, st, ss) BOOST_PP_ERROR(0x0005)
|
||||
#
|
||||
# elif BOOST_PP_LIMIT_SEQ == 512
|
||||
# include <boost/preprocessor/seq/limits/fold_right_512.hpp>
|
||||
#
|
||||
# define BOOST_PP_SEQ_FOLD_RIGHT BOOST_PP_CAT(BOOST_PP_SEQ_FOLD_RIGHT_, BOOST_PP_AUTO_REC(BOOST_PP_SEQ_FOLD_LEFT_P, 512))
|
||||
#
|
||||
# define BOOST_PP_SEQ_FOLD_RIGHT_513(op, st, ss) BOOST_PP_ERROR(0x0005)
|
||||
#
|
||||
# else
|
||||
# error Incorrect value for the BOOST_PP_LIMIT_SEQ limit
|
||||
# endif
|
||||
#
|
||||
# if BOOST_PP_LIMIT_SEQ == 256
|
||||
# include <boost/preprocessor/seq/limits/fold_right_256.hpp>
|
||||
# elif BOOST_PP_LIMIT_SEQ == 512
|
||||
# include <boost/preprocessor/seq/limits/fold_right_256.hpp>
|
||||
# include <boost/preprocessor/seq/limits/fold_right_512.hpp>
|
||||
# endif
|
||||
#
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user