整理
This commit is contained in:
98
include/boost/preprocessor/config/config.hpp
Normal file
98
include/boost/preprocessor/config/config.hpp
Normal file
@@ -0,0 +1,98 @@
|
||||
# /* **************************************************************************
|
||||
# * *
|
||||
# * (C) Copyright Paul Mensonides 2002-2011. *
|
||||
# * (C) Copyright Edward Diener 2011-2020. *
|
||||
# * 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) *
|
||||
# * *
|
||||
# ************************************************************************** */
|
||||
#
|
||||
# /* See http://www.boost.org for most recent version. */
|
||||
#
|
||||
# ifndef BOOST_PREPROCESSOR_CONFIG_CONFIG_HPP
|
||||
# define BOOST_PREPROCESSOR_CONFIG_CONFIG_HPP
|
||||
#
|
||||
# /* BOOST_PP_CONFIG_FLAGS */
|
||||
#
|
||||
# define BOOST_PP_CONFIG_STRICT() 0x0001
|
||||
# define BOOST_PP_CONFIG_IDEAL() 0x0002
|
||||
#
|
||||
# define BOOST_PP_CONFIG_MSVC() 0x0004
|
||||
# define BOOST_PP_CONFIG_MWCC() 0x0008
|
||||
# define BOOST_PP_CONFIG_BCC() 0x0010
|
||||
# define BOOST_PP_CONFIG_EDG() 0x0020
|
||||
# define BOOST_PP_CONFIG_DMC() 0x0040
|
||||
#
|
||||
# ifndef BOOST_PP_CONFIG_FLAGS
|
||||
# if defined(__GCCXML__) || defined(__WAVE__) || defined(__MWERKS__) && __MWERKS__ >= 0x3200
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
|
||||
# elif defined(__EDG__) || defined(__EDG_VERSION__)
|
||||
# if defined(_MSC_VER) && !defined(__clang__) && (defined(__INTELLISENSE__) || __EDG_VERSION__ >= 308)
|
||||
# if !defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MSVC())
|
||||
# else
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
|
||||
# endif
|
||||
# else
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_EDG() | BOOST_PP_CONFIG_STRICT())
|
||||
# endif
|
||||
# elif defined(_MSC_VER) && defined(__clang__)
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
|
||||
# elif defined(__MWERKS__)
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MWCC())
|
||||
# elif defined(__DMC__)
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_DMC())
|
||||
# elif defined(__BORLANDC__) && __BORLANDC__ >= 0x581
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
|
||||
# elif defined(__BORLANDC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__SUNPRO_CC)
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_BCC())
|
||||
# elif defined(_MSC_VER)
|
||||
# if !defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MSVC())
|
||||
# else
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
|
||||
# endif
|
||||
# else
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
|
||||
# endif
|
||||
# endif
|
||||
#
|
||||
# /* BOOST_PP_CONFIG_EXTENDED_LINE_INFO */
|
||||
#
|
||||
# ifndef BOOST_PP_CONFIG_EXTENDED_LINE_INFO
|
||||
# define BOOST_PP_CONFIG_EXTENDED_LINE_INFO 0
|
||||
# endif
|
||||
#
|
||||
# /* BOOST_PP_CONFIG_ERRORS */
|
||||
#
|
||||
# ifndef BOOST_PP_CONFIG_ERRORS
|
||||
# ifdef NDEBUG
|
||||
# define BOOST_PP_CONFIG_ERRORS 0
|
||||
# else
|
||||
# define BOOST_PP_CONFIG_ERRORS 1
|
||||
# endif
|
||||
# endif
|
||||
#
|
||||
# /* BOOST_PP_VARIADICS */
|
||||
#
|
||||
# if defined BOOST_PP_VARIADICS
|
||||
# undef BOOST_PP_VARIADICS
|
||||
# endif
|
||||
# if defined BOOST_PP_VARIADICS_MSVC
|
||||
# undef BOOST_PP_VARIADICS_MSVC
|
||||
# endif
|
||||
# define BOOST_PP_VARIADICS 1
|
||||
# if defined _MSC_VER && _MSC_VER >= 1400 && !defined(__clang__) && (defined(__INTELLISENSE__) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1700) || !(defined __EDG__ || defined __GCCXML__ || defined __PATHSCALE__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || defined __SUNPRO_CC || defined __HP_aCC || defined __MRC__ || defined __SC__ || defined __IBMCPP__ || defined __PGI)) && (!defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL)
|
||||
# define BOOST_PP_VARIADICS_MSVC 1
|
||||
# else
|
||||
# define BOOST_PP_VARIADICS_MSVC 0
|
||||
# endif
|
||||
#
|
||||
# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
|
||||
# define BOOST_PP_IS_STANDARD() 1
|
||||
# else
|
||||
# define BOOST_PP_IS_STANDARD() 0
|
||||
# endif
|
||||
#
|
||||
# endif
|
||||
163
include/boost/preprocessor/config/limits.hpp
Normal file
163
include/boost/preprocessor/config/limits.hpp
Normal file
@@ -0,0 +1,163 @@
|
||||
# /* Copyright (C) 2001
|
||||
# * Housemarque Oy
|
||||
# * http://www.housemarque.com
|
||||
# *
|
||||
# * 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)
|
||||
# */
|
||||
#
|
||||
# /* Revised by Paul Mensonides (2002) */
|
||||
# /* Revised by Edward Diener (2011,2020) */
|
||||
#
|
||||
# /* See http://www.boost.org for most recent version. */
|
||||
#
|
||||
# ifndef BOOST_PREPROCESSOR_CONFIG_LIMITS_HPP
|
||||
# define BOOST_PREPROCESSOR_CONFIG_LIMITS_HPP
|
||||
#
|
||||
# include <boost/preprocessor/config/config.hpp>
|
||||
#
|
||||
# if defined(BOOST_PP_LIMIT_DIM)
|
||||
# undef BOOST_PP_LIMIT_DIM
|
||||
# endif
|
||||
# if defined(BOOST_PP_LIMIT_ITERATION_DIM)
|
||||
# undef BOOST_PP_LIMIT_ITERATION_DIM
|
||||
# endif
|
||||
# if defined(BOOST_PP_LIMIT_SLOT_SIG)
|
||||
# undef BOOST_PP_LIMIT_SLOT_SIG
|
||||
# endif
|
||||
# if defined(BOOST_PP_LIMIT_SLOT_COUNT)
|
||||
# undef BOOST_PP_LIMIT_SLOT_COUNT
|
||||
# endif
|
||||
# if defined(BOOST_PP_LIMIT_WHILE)
|
||||
# undef BOOST_PP_LIMIT_WHILE
|
||||
# endif
|
||||
#
|
||||
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
|
||||
#
|
||||
# if defined(BOOST_PP_LIMIT_MAG)
|
||||
# undef BOOST_PP_LIMIT_MAG
|
||||
# endif
|
||||
# if defined(BOOST_PP_LIMIT_VARIADIC)
|
||||
# undef BOOST_PP_LIMIT_VARIADIC
|
||||
# endif
|
||||
# if defined(BOOST_PP_LIMIT_TUPLE)
|
||||
# undef BOOST_PP_LIMIT_TUPLE
|
||||
# endif
|
||||
# if defined(BOOST_PP_LIMIT_FOR)
|
||||
# undef BOOST_PP_LIMIT_FOR
|
||||
# endif
|
||||
# if defined(BOOST_PP_LIMIT_REPEAT)
|
||||
# undef BOOST_PP_LIMIT_REPEAT
|
||||
# endif
|
||||
# if defined(BOOST_PP_LIMIT_SEQ)
|
||||
# undef BOOST_PP_LIMIT_SEQ
|
||||
# endif
|
||||
# if defined(BOOST_PP_LIMIT_ITERATION)
|
||||
# undef BOOST_PP_LIMIT_ITERATION
|
||||
# endif
|
||||
#
|
||||
# define BOOST_PP_LIMIT_MAG 256
|
||||
# define BOOST_PP_LIMIT_WHILE 256
|
||||
# define BOOST_PP_LIMIT_VARIADIC 64
|
||||
# define BOOST_PP_LIMIT_TUPLE 64
|
||||
# define BOOST_PP_LIMIT_FOR 256
|
||||
# define BOOST_PP_LIMIT_SEQ 256
|
||||
# define BOOST_PP_LIMIT_REPEAT 256
|
||||
# define BOOST_PP_LIMIT_ITERATION 256
|
||||
#
|
||||
#else
|
||||
#
|
||||
# if defined(BOOST_PP_LIMIT_MAG)
|
||||
# if !(BOOST_PP_LIMIT_MAG == 256 || BOOST_PP_LIMIT_MAG == 512 || BOOST_PP_LIMIT_MAG == 1024)
|
||||
# undef BOOST_PP_LIMIT_MAG
|
||||
# define BOOST_PP_LIMIT_MAG 256
|
||||
# define BOOST_PP_LIMIT_WHILE 256
|
||||
# else
|
||||
# define BOOST_PP_LIMIT_WHILE BOOST_PP_LIMIT_MAG
|
||||
# if !defined(BOOST_PP_LIMIT_SEQ)
|
||||
# define BOOST_PP_LIMIT_SEQ BOOST_PP_LIMIT_MAG
|
||||
# endif
|
||||
# endif
|
||||
# else
|
||||
# define BOOST_PP_LIMIT_MAG 256
|
||||
# define BOOST_PP_LIMIT_WHILE 256
|
||||
# endif
|
||||
#
|
||||
# if defined(BOOST_PP_LIMIT_VARIADIC)
|
||||
# if !(BOOST_PP_LIMIT_VARIADIC == 64 || BOOST_PP_LIMIT_VARIADIC == 128 || BOOST_PP_LIMIT_VARIADIC == 256)
|
||||
# undef BOOST_PP_LIMIT_VARIADIC
|
||||
# define BOOST_PP_LIMIT_VARIADIC 64
|
||||
# endif
|
||||
# else
|
||||
# define BOOST_PP_LIMIT_VARIADIC 64
|
||||
# endif
|
||||
#
|
||||
# if defined(BOOST_PP_LIMIT_TUPLE)
|
||||
# if !(BOOST_PP_LIMIT_TUPLE == 64 || BOOST_PP_LIMIT_TUPLE == 128 || BOOST_PP_LIMIT_TUPLE == 256)
|
||||
# undef BOOST_PP_LIMIT_TUPLE
|
||||
# define BOOST_PP_LIMIT_TUPLE 64
|
||||
# elif BOOST_PP_LIMIT_TUPLE > BOOST_PP_LIMIT_VARIADIC
|
||||
# undef BOOST_PP_LIMIT_VARIADIC
|
||||
# define BOOST_PP_LIMIT_VARIADIC BOOST_PP_LIMIT_TUPLE
|
||||
# endif
|
||||
# else
|
||||
# define BOOST_PP_LIMIT_TUPLE 64
|
||||
# endif
|
||||
#
|
||||
# if defined(BOOST_PP_LIMIT_FOR)
|
||||
# if !(BOOST_PP_LIMIT_FOR == 256 || BOOST_PP_LIMIT_FOR == 512 || BOOST_PP_LIMIT_FOR == 1024)
|
||||
# undef BOOST_PP_LIMIT_FOR
|
||||
# define BOOST_PP_LIMIT_FOR 256
|
||||
# elif BOOST_PP_LIMIT_FOR > BOOST_PP_LIMIT_MAG
|
||||
# undef BOOST_PP_LIMIT_FOR
|
||||
# define BOOST_PP_LIMIT_FOR BOOST_PP_LIMIT_MAG
|
||||
# endif
|
||||
# else
|
||||
# define BOOST_PP_LIMIT_FOR 256
|
||||
# endif
|
||||
#
|
||||
# if defined(BOOST_PP_LIMIT_REPEAT)
|
||||
# if !(BOOST_PP_LIMIT_REPEAT == 256 || BOOST_PP_LIMIT_REPEAT == 512 || BOOST_PP_LIMIT_REPEAT == 1024)
|
||||
# undef BOOST_PP_LIMIT_REPEAT
|
||||
# define BOOST_PP_LIMIT_REPEAT 256
|
||||
# elif BOOST_PP_LIMIT_REPEAT > BOOST_PP_LIMIT_MAG
|
||||
# undef BOOST_PP_LIMIT_REPEAT
|
||||
# define BOOST_PP_LIMIT_REPEAT BOOST_PP_LIMIT_MAG
|
||||
# endif
|
||||
# else
|
||||
# define BOOST_PP_LIMIT_REPEAT 256
|
||||
# endif
|
||||
#
|
||||
# if defined(BOOST_PP_LIMIT_SEQ)
|
||||
# if !(BOOST_PP_LIMIT_SEQ == 256 || BOOST_PP_LIMIT_SEQ == 512 || BOOST_PP_LIMIT_SEQ == 1024)
|
||||
# undef BOOST_PP_LIMIT_SEQ
|
||||
# define BOOST_PP_LIMIT_SEQ 256
|
||||
# elif BOOST_PP_LIMIT_SEQ > BOOST_PP_LIMIT_MAG
|
||||
# undef BOOST_PP_LIMIT_SEQ
|
||||
# define BOOST_PP_LIMIT_SEQ BOOST_PP_LIMIT_MAG
|
||||
# endif
|
||||
# else
|
||||
# define BOOST_PP_LIMIT_SEQ 256
|
||||
# endif
|
||||
#
|
||||
# if defined(BOOST_PP_LIMIT_ITERATION)
|
||||
# if !(BOOST_PP_LIMIT_ITERATION == 256 || BOOST_PP_LIMIT_ITERATION == 512 || BOOST_PP_LIMIT_ITERATION == 1024)
|
||||
# undef BOOST_PP_LIMIT_ITERATION
|
||||
# define BOOST_PP_LIMIT_ITERATION 256
|
||||
# elif BOOST_PP_LIMIT_ITERATION > BOOST_PP_LIMIT_MAG
|
||||
# undef BOOST_PP_LIMIT_ITERATION
|
||||
# define BOOST_PP_LIMIT_ITERATION BOOST_PP_LIMIT_MAG
|
||||
# endif
|
||||
# else
|
||||
# define BOOST_PP_LIMIT_ITERATION 256
|
||||
# endif
|
||||
#
|
||||
# endif
|
||||
#
|
||||
# define BOOST_PP_LIMIT_DIM 3
|
||||
# define BOOST_PP_LIMIT_ITERATION_DIM 3
|
||||
# define BOOST_PP_LIMIT_SLOT_SIG 10
|
||||
# define BOOST_PP_LIMIT_SLOT_COUNT 5
|
||||
#
|
||||
# endif
|
||||
Reference in New Issue
Block a user