switch.hpp 1.0 KB

12345678910111213141516171819202122232425
  1. /*==============================================================================
  2. Copyright (c) 2011 Hartmut Kaiser
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #if !defined(BOOST_PHOENIX_PREPROCESSED_SWITCH)
  7. #define BOOST_PHOENIX_PREPROCESSED_SWITCH
  8. #if BOOST_PHOENIX_LIMIT <= 10
  9. #include <boost/phoenix/statement/detail/preprocessed/switch_10.hpp>
  10. #elif BOOST_PHOENIX_LIMIT <= 20
  11. #include <boost/phoenix/statement/detail/preprocessed/switch_20.hpp>
  12. #elif BOOST_PHOENIX_LIMIT <= 30
  13. #include <boost/phoenix/statement/detail/preprocessed/switch_30.hpp>
  14. #elif BOOST_PHOENIX_LIMIT <= 40
  15. #include <boost/phoenix/statement/detail/preprocessed/switch_40.hpp>
  16. #elif BOOST_PHOENIX_LIMIT <= 50
  17. #include <boost/phoenix/statement/detail/preprocessed/switch_50.hpp>
  18. #else
  19. #error "BOOST_PHOENIX_LIMIT out of bounds for preprocessed headers"
  20. #endif
  21. #endif