cpp_config.hpp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*=============================================================================
  2. Boost.Wave: A Standard compliant C++ preprocessor library
  3. Global application configuration of the Wave driver command
  4. http://www.boost.org/
  5. Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
  6. Software License, Version 1.0. (See accompanying file
  7. LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  8. =============================================================================*/
  9. #if !defined(CPP_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED)
  10. #define CPP_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED
  11. ///////////////////////////////////////////////////////////////////////////////
  12. // Uncomment the following, if you need debug output, the
  13. // BOOST_SPIRIT_DEBUG_FLAGS constants below helps to fine control the amount of
  14. // the generated debug output
  15. //#define BOOST_SPIRIT_DEBUG
  16. ///////////////////////////////////////////////////////////////////////////////
  17. // debug rules, subrules and grammars only, for possible flags see
  18. // spirit/include/classic_debug.hpp
  19. #if defined(BOOST_SPIRIT_DEBUG)
  20. #define BOOST_SPIRIT_DEBUG_FLAGS ( \
  21. BOOST_SPIRIT_DEBUG_FLAGS_NODES | \
  22. BOOST_SPIRIT_DEBUG_FLAGS_CLOSURES \
  23. ) \
  24. /**/
  25. ///////////////////////////////////////////////////////////////////////////////
  26. // Debug flags for the Wave library, possible flags (defined in
  27. // wave_config.hpp):
  28. //
  29. // #define BOOST_SPIRIT_DEBUG_FLAGS_CPP_GRAMMAR 0x0001
  30. // #define BOOST_SPIRIT_DEBUG_FLAGS_TIME_CONVERSION 0x0002
  31. // #define BOOST_SPIRIT_DEBUG_FLAGS_CPP_EXPR_GRAMMAR 0x0004
  32. // #define BOOST_SPIRIT_DEBUG_FLAGS_INTLIT_GRAMMAR 0x0008
  33. // #define BOOST_SPIRIT_DEBUG_FLAGS_CHLIT_GRAMMAR 0x0010
  34. // #define BOOST_SPIRIT_DEBUG_FLAGS_DEFINED_GRAMMAR 0x0020
  35. // #define BOOST_SPIRIT_DEBUG_FLAGS_PREDEF_MACROS_GRAMMAR 0x0040
  36. #define BOOST_SPIRIT_DEBUG_FLAGS_CPP ( 0 \
  37. /* insert the required flags from above */ \
  38. ) \
  39. /**/
  40. #endif
  41. ///////////////////////////////////////////////////////////////////////////////
  42. // Include the configuration stuff for the Wave library itself
  43. #include <boost/wave/wave_config.hpp>
  44. ///////////////////////////////////////////////////////////////////////////////
  45. // MSVC specific #pragma's
  46. #if defined(BOOST_MSVC)
  47. #pragma warning (disable: 4355) // 'this' used in base member initializer list
  48. #pragma warning (disable: 4800) // forcing value to bool 'true' or 'false'
  49. #pragma inline_depth(255)
  50. #pragma inline_recursion(on)
  51. #endif // defined(BOOST_MSVC)
  52. #endif // !defined(CPP_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED)