2002-11-07 23:16:43 +00:00
|
|
|
# /* **************************************************************************
|
|
|
|
# * *
|
2004-07-27 03:43:34 +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-11-07 23:16:43 +00:00
|
|
|
# * *
|
|
|
|
# ************************************************************************** */
|
|
|
|
#
|
2020-05-01 14:38:32 -04:00
|
|
|
# /* Revised by Edward Diener (2020) */
|
|
|
|
#
|
2002-11-07 23:16:43 +00:00
|
|
|
# /* See http://www.boost.org for most recent version. */
|
|
|
|
#
|
|
|
|
# ifndef BOOST_PREPROCESSOR_SEQ_ENUM_HPP
|
|
|
|
# define BOOST_PREPROCESSOR_SEQ_ENUM_HPP
|
|
|
|
#
|
2020-07-02 11:24:15 -04:00
|
|
|
# include <boost/preprocessor/cat.hpp>
|
|
|
|
# include <boost/preprocessor/config/config.hpp>
|
|
|
|
# include <boost/preprocessor/seq/size.hpp>
|
|
|
|
#
|
2002-11-07 23:16:43 +00:00
|
|
|
# /* BOOST_PP_SEQ_ENUM */
|
|
|
|
#
|
2020-07-02 11:24:15 -04:00
|
|
|
# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
|
|
|
|
# define BOOST_PP_SEQ_ENUM(seq) BOOST_PP_SEQ_ENUM_I(seq)
|
|
|
|
# define BOOST_PP_SEQ_ENUM_I(seq) BOOST_PP_CAT(BOOST_PP_SEQ_ENUM_, BOOST_PP_SEQ_SIZE(seq)) seq
|
|
|
|
# elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
|
|
|
|
# define BOOST_PP_SEQ_ENUM(seq) BOOST_PP_SEQ_ENUM_I(BOOST_PP_SEQ_SIZE(seq), seq)
|
|
|
|
# define BOOST_PP_SEQ_ENUM_I(size, seq) BOOST_PP_CAT(BOOST_PP_SEQ_ENUM_, size) seq
|
|
|
|
# else
|
|
|
|
# define BOOST_PP_SEQ_ENUM(seq) BOOST_PP_CAT(BOOST_PP_SEQ_ENUM_, BOOST_PP_SEQ_SIZE(seq)) seq
|
|
|
|
# endif
|
|
|
|
#
|
2020-05-01 14:38:32 -04:00
|
|
|
# include <boost/preprocessor/config/limits.hpp>
|
|
|
|
#
|
|
|
|
# if BOOST_PP_LIMIT_SEQ == 256
|
|
|
|
# include <boost/preprocessor/seq/limits/enum_256.hpp>
|
|
|
|
# elif BOOST_PP_LIMIT_SEQ == 512
|
2020-07-02 11:24:15 -04:00
|
|
|
# include <boost/preprocessor/seq/limits/enum_256.hpp>
|
2020-05-01 14:38:32 -04:00
|
|
|
# include <boost/preprocessor/seq/limits/enum_512.hpp>
|
2020-07-27 20:59:29 -04:00
|
|
|
# elif BOOST_PP_LIMIT_SEQ == 1024
|
|
|
|
# include <boost/preprocessor/seq/limits/enum_256.hpp>
|
|
|
|
# include <boost/preprocessor/seq/limits/enum_512.hpp>
|
|
|
|
# include <boost/preprocessor/seq/limits/enum_1024.hpp>
|
2005-07-19 20:47:19 +00:00
|
|
|
# else
|
2020-05-01 14:38:32 -04:00
|
|
|
# error Incorrect value for the BOOST_PP_LIMIT_SEQ limit
|
2002-11-07 23:16:43 +00:00
|
|
|
# endif
|
|
|
|
#
|
|
|
|
# endif
|