Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:44

0001 /*=============================================================================
0002     Boost.Wave: A Standard compliant C++ preprocessor library
0003     Persistent application configuration
0004 
0005     http://www.boost.org/
0006 
0007     Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
0008     Software License, Version 1.0. (See accompanying file
0009     LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
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     //  Call this function to test the configuration of the calling application
0076     //  against the configuration of the linked library.
0077     BOOST_WAVE_DECL bool test_configuration(unsigned int config,
0078         char const* pragma_keyword, char const* string_type);
0079 
0080 ///////////////////////////////////////////////////////////////////////////////
0081 }}  // namespace boost::wave
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 // !BOOST_WAVE_CONFIG_CONSTANT_HPP