Files
boost_preprocessor/include/boost/preprocessor/seq/detail/split.hpp

45 lines
1.7 KiB
C++
Raw Normal View History

2002-10-13 06:11:19 +00:00
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy at
# * http://www.boost.org/LICENSE_1_0.txt)
2002-10-13 06:11:19 +00:00
# * *
# ************************************************************************** */
#
# /* Revised by Edward Diener (2020) */
#
2002-10-13 06:11:19 +00:00
# /* See http://www.boost.org for most recent version. */
#
2002-11-07 23:08:07 +00:00
# ifndef BOOST_PREPROCESSOR_SEQ_DETAIL_SPLIT_HPP
# define BOOST_PREPROCESSOR_SEQ_DETAIL_SPLIT_HPP
2002-10-13 06:11:19 +00:00
#
# include <boost/preprocessor/config/config.hpp>
#
2002-11-07 23:08:07 +00:00
# /* BOOST_PP_SEQ_SPLIT */
2002-10-13 06:11:19 +00:00
#
# define BOOST_PP_SEQ_SPLIT(n, seq) BOOST_PP_SEQ_SPLIT_D(n, seq)
#
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
# define BOOST_PP_SEQ_SPLIT_D(n, seq) (BOOST_PP_SEQ_SPLIT_ ## n seq)
# else
# define BOOST_PP_SEQ_SPLIT_D(n, seq) (BOOST_PP_SEQ_SPLIT_ ## n ## seq)
# endif
#
# include <boost/preprocessor/config/limits.hpp>
2003-01-02 06:29:00 +00:00
#
# if BOOST_PP_LIMIT_SEQ == 256
# include <boost/preprocessor/seq/detail/limits/split_256.hpp>
# elif BOOST_PP_LIMIT_SEQ == 512
# include <boost/preprocessor/seq/detail/limits/split_256.hpp>
# include <boost/preprocessor/seq/detail/limits/split_512.hpp>
# elif BOOST_PP_LIMIT_SEQ == 1024
# include <boost/preprocessor/seq/detail/limits/split_256.hpp>
# include <boost/preprocessor/seq/detail/limits/split_512.hpp>
# include <boost/preprocessor/seq/detail/limits/split_1024.hpp>
2003-01-02 06:29:00 +00:00
# else
# error Incorrect value for the BOOST_PP_LIMIT_SEQ limit
2003-01-02 06:29:00 +00:00
# endif
2002-10-13 06:11:19 +00:00
#
# endif