1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
3 Persistent application configuration
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 =============================================================================*/
12 #define BOOST_WAVE_SOURCE 1
14 // disable stupid compiler warnings
15 #include <boost/config/warning_disable.hpp>
18 #include <boost/preprocessor/stringize.hpp>
20 #include <boost/wave/wave_config.hpp>
21 #include <boost/wave/wave_config_constant.hpp>
23 ///////////////////////////////////////////////////////////////////////////////
24 namespace boost
{ namespace wave
{
26 ///////////////////////////////////////////////////////////////////////////
27 // Call this function to test the configuration of the calling application
28 // against the configuration of the linked library.
30 test_configuration(unsigned int config
, char const* pragma_keyword
,
31 char const* string_type_str
)
33 if (NULL
== pragma_keyword
|| NULL
== string_type_str
)
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
))))
46 ///////////////////////////////////////////////////////////////////////////////
47 }} // namespace boost::wave