File indexing completed on 2025-01-18 09:53:44
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #if !defined(BOOST_WAVE_CONFIG_CONSTANT_HPP)
0013 #define BOOST_WAVE_CONFIG_CONSTANT_HPP
0014
0015 #include <boost/preprocessor/stringize.hpp>
0016 #include <boost/wave/wave_config.hpp>
0017
0018
0019 #if BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS != 0
0020 #define BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS_CONFIG 0x00000001
0021 #else
0022 #define BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS_CONFIG 0x00000000
0023 #endif
0024
0025
0026 #if BOOST_WAVE_SUPPORT_PRAGMA_ONCE != 0
0027 #define BOOST_WAVE_SUPPORT_PRAGMA_ONCE_CONFIG 0x00000002
0028 #else
0029 #define BOOST_WAVE_SUPPORT_PRAGMA_ONCE_CONFIG 0x00000000
0030 #endif
0031
0032
0033 #if BOOST_WAVE_SUPPORT_MS_EXTENSIONS != 0
0034 #define BOOST_WAVE_SUPPORT_MS_EXTENSIONS_CONFIG 0x00000004
0035 #else
0036 #define BOOST_WAVE_SUPPORT_MS_EXTENSIONS_CONFIG 0x00000000
0037 #endif
0038
0039
0040 #if BOOST_WAVE_PREPROCESS_PRAGMA_BODY != 0
0041 #define BOOST_WAVE_PREPROCESS_PRAGMA_BODY_CONFIG 0x00000008
0042 #else
0043 #define BOOST_WAVE_PREPROCESS_PRAGMA_BODY_CONFIG 0x00000000
0044 #endif
0045
0046
0047 #if BOOST_WAVE_USE_STRICT_LEXER != 0
0048 #define BOOST_WAVE_USE_STRICT_LEXER_CONFIG 0x00000010
0049 #else
0050 #define BOOST_WAVE_USE_STRICT_LEXER_CONFIG 0x00000000
0051 #endif
0052
0053
0054 #if BOOST_WAVE_SUPPORT_IMPORT_KEYWORD != 0
0055 #define BOOST_WAVE_SUPPORT_IMPORT_KEYWORD_CONFIG 0x00000020
0056 #else
0057 #define BOOST_WAVE_SUPPORT_IMPORT_KEYWORD_CONFIG 0x00000000
0058 #endif
0059
0060
0061 #define BOOST_WAVE_CONFIG ( \
0062 BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS_CONFIG | \
0063 BOOST_WAVE_SUPPORT_PRAGMA_ONCE_CONFIG | \
0064 BOOST_WAVE_SUPPORT_MS_EXTENSIONS_CONFIG | \
0065 BOOST_WAVE_PREPROCESS_PRAGMA_BODY_CONFIG | \
0066 BOOST_WAVE_USE_STRICT_LEXER_CONFIG | \
0067 BOOST_WAVE_SUPPORT_IMPORT_KEYWORD_CONFIG \
0068 ) \
0069
0070
0071
0072 namespace boost { namespace wave {
0073
0074
0075
0076
0077 BOOST_WAVE_DECL bool test_configuration(unsigned int config,
0078 char const* pragma_keyword, char const* string_type);
0079
0080
0081 }}
0082
0083 #define BOOST_WAVE_TEST_CONFIGURATION() \
0084 boost::wave::test_configuration( \
0085 BOOST_WAVE_CONFIG, \
0086 BOOST_WAVE_PRAGMA_KEYWORD, \
0087 BOOST_PP_STRINGIZE((BOOST_WAVE_STRINGTYPE)) \
0088 ) \
0089
0090
0091 #endif