mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-16 05:52:24 +02:00
speedups
[SVN r15272]
This commit is contained in:
@ -15,78 +15,32 @@
|
||||
#
|
||||
# /* BOOST_PP_CONFIG_FLAGS */
|
||||
#
|
||||
# define BOOST_PP_CONFIG_STRICT 0x0001
|
||||
# define BOOST_PP_CONFIG_IDEAL 0x0002
|
||||
# define BOOST_PP_CONFIG_STRICT() 0x0001
|
||||
# define BOOST_PP_CONFIG_IDEAL() 0x0002
|
||||
#
|
||||
# define BOOST_PP_CONFIG_MSVC 0x0004
|
||||
# define BOOST_PP_CONFIG_MWCW 0x0008
|
||||
# define BOOST_PP_CONFIG_BCC 0x0010
|
||||
# define BOOST_PP_CONFIG_EDG 0x0020
|
||||
# define BOOST_PP_CONFIG_MSVC() 0x0004
|
||||
# define BOOST_PP_CONFIG_MWCC() 0x0008
|
||||
# define BOOST_PP_CONFIG_BCC() 0x0010
|
||||
# define BOOST_PP_CONFIG_EDG() 0x0020
|
||||
#
|
||||
# ifndef BOOST_PP_CONFIG_FLAGS
|
||||
# if defined(__EDG__)
|
||||
# define BOOST_PP_CONFIG_FLAGS (BOOST_PP_CONFIG_EDG | BOOST_PP_CONFIG_STRICT)
|
||||
# elif defined(_MSC_VER)
|
||||
# define BOOST_PP_CONFIG_FLAGS (BOOST_PP_CONFIG_MSVC)
|
||||
# if defined(__EDG__) || defined(__EDG_VERSION)
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_EDG() | BOOST_PP_CONFIG_STRICT())
|
||||
# elif defined(__MWERKS__)
|
||||
# define BOOST_PP_CONFIG_FLAGS (BOOST_PP_CONFIG_MWCW)
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MWCC())
|
||||
# elif defined(__BORLANDC__)
|
||||
# define BOOST_PP_CONFIG_FLAGS (BOOST_PP_CONFIG_BCC)
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_BCC())
|
||||
# elif defined(_MSC_VER)
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MSVC())
|
||||
# else
|
||||
# define BOOST_PP_CONFIG_FLAGS (BOOST_PP_CONFIG_STRICT | BOOST_PP_CONFIG_IDEAL)
|
||||
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
|
||||
# endif
|
||||
# endif
|
||||
#
|
||||
# /* BOOST_PP_CONFIG_VARIADIC */
|
||||
#
|
||||
# if __STDC_VERSION__ >= 199901L && !defined(__cplusplus)
|
||||
# define BOOST_PP_CONFIG_VARIADIC_DEF 1
|
||||
# else
|
||||
# define BOOST_PP_CONFIG_VARIADIC_DEF 0
|
||||
# endif
|
||||
#
|
||||
# ifndef BOOST_PP_CONFIG_VARIADIC
|
||||
# define BOOST_PP_CONFIG_VARIADIC BOOST_PP_CONFIG_VARIADIC_DEF
|
||||
# endif
|
||||
#
|
||||
# /* BOOST_PP_CONFIG_UNROLLED */
|
||||
#
|
||||
# define BOOST_PP_CONFIG_UNROLLED_DEF 0
|
||||
#
|
||||
# ifndef BOOST_PP_CONFIG_UNROLLED
|
||||
# define BOOST_PP_CONFIG_UNROLLED BOOST_PP_CONFIG_UNROLLED_DEF
|
||||
# endif
|
||||
#
|
||||
# /* BOOST_PP_CONFIG_WARNINGS */
|
||||
#
|
||||
# ifndef NDEBUG
|
||||
# define BOOST_PP_CONFIG_WARNINGS_DEF 1
|
||||
# else
|
||||
# define BOOST_PP_CONFIG_WARNINGS_DEF 0
|
||||
# endif
|
||||
#
|
||||
# ifndef BOOST_PP_CONFIG_WARNINGS
|
||||
# define BOOST_PP_CONFIG_WARNINGS BOOST_PP_CONFIG_WARNINGS_DEF
|
||||
# endif
|
||||
#
|
||||
# /* BOOST_PP_CONFIG_ERRORS */
|
||||
#
|
||||
# ifndef NDEBUG
|
||||
# define BOOST_PP_CONFIG_ERRORS_DEF 1
|
||||
# else
|
||||
# define BOOST_PP_CONFIG_ERRORS_DEF 0
|
||||
# endif
|
||||
#
|
||||
# ifndef BOOST_PP_CONFIG_ERRORS
|
||||
# define BOOST_PP_CONFIG_ERRORS BOOST_PP_CONFIG_ERRORS_DEF
|
||||
# endif
|
||||
#
|
||||
# /* BOOST_PP_CONFIG_EXTENDED_LINE_INFO */
|
||||
#
|
||||
# define BOOST_PP_CONFIG_EXTENDED_LINE_INFO_DEF 0
|
||||
#
|
||||
# ifndef BOOST_PP_CONFIG_EXTENDED_LINE_INFO
|
||||
# define BOOST_PP_CONFIG_EXTENDED_LINE_INFO BOOST_PP_CONFIG_EXTENDED_LINE_INFO_DEF
|
||||
# define BOOST_PP_CONFIG_EXTENDED_LINE_INFO 0
|
||||
# endif
|
||||
#
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user