idl_config.hpp 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*=============================================================================
  2. Boost.Wave: A Standard compliant C++ preprocessor library
  3. Sample: IDL oriented preprocessor
  4. Global application configuration of the Wave driver command
  5. http://www.boost.org/
  6. Copyright (c) 2001-2010 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(IDL_CONFIG_HPP_012D7524_FF3F_482F_9123_91966C72F4EA_INCLUDED)
  11. #define IDL_CONFIG_HPP_012D7524_FF3F_482F_9123_91966C72F4EA_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. ///////////////////////////////////////////////////////////////////////////////
  18. // debug rules, subrules and grammars only, for possible flags see
  19. // spirit/debug.hpp
  20. #if defined(BOOST_SPIRIT_DEBUG)
  21. #define BOOST_SPIRIT_DEBUG_FLAGS ( \
  22. BOOST_SPIRIT_DEBUG_FLAGS_NODES | \
  23. BOOST_SPIRIT_DEBUG_FLAGS_CLOSURES \
  24. ) \
  25. /**/
  26. ///////////////////////////////////////////////////////////////////////////////
  27. // debug flags for the pp-iterator library, possible flags (defined in
  28. // wave_config.hpp):
  29. //
  30. // #define BOOST_SPIRIT_DEBUG_FLAGS_CPP_GRAMMAR 0x0001
  31. // #define BOOST_SPIRIT_DEBUG_FLAGS_TIME_CONVERSION 0x0002
  32. // #define BOOST_SPIRIT_DEBUG_FLAGS_CPP_EXPR_GRAMMAR 0x0004
  33. // #define BOOST_SPIRIT_DEBUG_FLAGS_INTLIT_GRAMMAR 0x0008
  34. // #define BOOST_SPIRIT_DEBUG_FLAGS_CHLIT_GRAMMAR 0x0010
  35. // #define BOOST_SPIRIT_DEBUG_FLAGS_DEFINED_GRAMMAR 0x0020
  36. // #define BOOST_SPIRIT_DEBUG_FLAGS_PREDEF_MACROS_GRAMMAR 0x0040
  37. #define BOOST_SPIRIT_DEBUG_FLAGS_CPP (\
  38. /* insert the required flags from above */ \
  39. ) \
  40. /**/
  41. #endif
  42. ///////////////////////////////////////////////////////////////////////////////
  43. // Now include the cofiguration stuff for the Wave library itself
  44. #include <boost/wave/wave_config.hpp>
  45. ///////////////////////////////////////////////////////////////////////////////
  46. // MSVC specific #pragma's
  47. #if defined(BOOST_MSVC)
  48. #pragma warning (disable: 4355) // 'this' used in base member initializer list
  49. #pragma warning (disable: 4800) // forcing value to bool 'true' or 'false'
  50. #pragma inline_depth(255)
  51. #pragma inline_recursion(on)
  52. #endif // defined(BOOST_MSVC)
  53. #endif // !defined(IDL_CONFIG_HPP_012D7524_FF3F_482F_9123_91966C72F4EA_INCLUDED)