cpp_tokens_config.hpp 2.4 KB

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