cpp_value_error.hpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*=============================================================================
  2. Boost.Wave: A Standard compliant C++ preprocessor library
  3. http://www.boost.org/
  4. Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
  5. Software License, Version 1.0. (See accompanying file
  6. LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. =============================================================================*/
  8. #if !defined(BOOST_WAVE_CPP_VALUE_ERROR_INCLUDED)
  9. #define BOOST_WAVE_CPP_VALUE_ERROR_INCLUDED
  10. #include <boost/wave/wave_config.hpp>
  11. // this must occur after all of the includes and before any code appears
  12. #ifdef BOOST_HAS_ABI_HEADERS
  13. #include BOOST_ABI_PREFIX
  14. #endif
  15. ///////////////////////////////////////////////////////////////////////////////
  16. namespace boost {
  17. namespace wave {
  18. namespace grammars {
  19. ///////////////////////////////////////////////////////////////////////////////
  20. //
  21. // value_error enum type
  22. //
  23. // This is used to encode any error occurred during the evaluation of a
  24. // conditional preprocessor expression
  25. //
  26. ///////////////////////////////////////////////////////////////////////////////
  27. enum value_error {
  28. error_noerror = 0x0,
  29. error_division_by_zero = 0x1,
  30. error_integer_overflow = 0x2,
  31. error_character_overflow = 0x4
  32. };
  33. ///////////////////////////////////////////////////////////////////////////////
  34. } // namespace grammars
  35. } // namespace wave
  36. } // namespace boost
  37. // the suffix header occurs after all of the code
  38. #ifdef BOOST_HAS_ABI_HEADERS
  39. #include BOOST_ABI_SUFFIX
  40. #endif
  41. #endif // !defined(BOOST_WAVE_CPP_VALUE_ERROR_INCLUDED)