]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/src/wave_config_constant.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / wave / src / wave_config_constant.cpp
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
3 Persistent application configuration
4
5 http://www.boost.org/
6
7 Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
8 Software License, Version 1.0. (See accompanying file
9 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 =============================================================================*/
11
12 #define BOOST_WAVE_SOURCE 1
13
14 // disable stupid compiler warnings
15 #include <boost/config/warning_disable.hpp>
16
17 #include <cstring>
18 #include <boost/preprocessor/stringize.hpp>
19
20 #include <boost/wave/wave_config.hpp>
21 #include <boost/wave/wave_config_constant.hpp>
22
23 ///////////////////////////////////////////////////////////////////////////////
24 namespace boost { namespace wave {
25
26 ///////////////////////////////////////////////////////////////////////////
27 // Call this function to test the configuration of the calling application
28 // against the configuration of the linked library.
29 BOOST_WAVE_DECL bool
30 test_configuration(unsigned int config, char const* pragma_keyword,
31 char const* string_type_str)
32 {
33 if (NULL == pragma_keyword || NULL == string_type_str)
34 return false;
35
36 using namespace std;; // some systems have strcmp in namespace std
37 if (config != BOOST_WAVE_CONFIG ||
38 strcmp(pragma_keyword, BOOST_WAVE_PRAGMA_KEYWORD) ||
39 strcmp(string_type_str, BOOST_PP_STRINGIZE((BOOST_WAVE_STRINGTYPE))))
40 {
41 return false;
42 }
43 return true;
44 }
45
46 ///////////////////////////////////////////////////////////////////////////////
47 }} // namespace boost::wave
48