is_begin_parens.hpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # /* **************************************************************************
  2. # * *
  3. # * (C) Copyright Edward Diener 2014.
  4. # * Distributed under the Boost Software License, Version 1.0. (See
  5. # * accompanying file LICENSE_1_0.txt or copy at
  6. # * http://www.boost.org/LICENSE_1_0.txt)
  7. # * *
  8. # ************************************************************************** */
  9. #
  10. # /* See http://www.boost.org for most recent version. */
  11. #
  12. # ifndef BOOST_PREPROCESSOR_IS_BEGIN_PARENS_HPP
  13. # define BOOST_PREPROCESSOR_IS_BEGIN_PARENS_HPP
  14. # include <boost/preprocessor/config/config.hpp>
  15. #if BOOST_PP_VARIADICS
  16. #include <boost/preprocessor/punctuation/detail/is_begin_parens.hpp>
  17. #if BOOST_PP_VARIADICS_MSVC && _MSC_VER <= 1400
  18. #define BOOST_PP_IS_BEGIN_PARENS(param) \
  19. BOOST_PP_DETAIL_IBP_SPLIT \
  20. ( \
  21. 0, \
  22. BOOST_PP_DETAIL_IBP_CAT \
  23. ( \
  24. BOOST_PP_DETAIL_IBP_IS_VARIADIC_R_, \
  25. BOOST_PP_DETAIL_IBP_IS_VARIADIC_C param \
  26. ) \
  27. ) \
  28. /**/
  29. #else
  30. #define BOOST_PP_IS_BEGIN_PARENS(...) \
  31. BOOST_PP_DETAIL_IBP_SPLIT \
  32. ( \
  33. 0, \
  34. BOOST_PP_DETAIL_IBP_CAT \
  35. ( \
  36. BOOST_PP_DETAIL_IBP_IS_VARIADIC_R_, \
  37. BOOST_PP_DETAIL_IBP_IS_VARIADIC_C __VA_ARGS__ \
  38. ) \
  39. ) \
  40. /**/
  41. #endif /* BOOST_PP_VARIADICS_MSVC && _MSC_VER <= 1400 */
  42. #endif /* BOOST_PP_VARIADICS */
  43. #endif /* BOOST_PREPROCESSOR_IS_BEGIN_PARENS_HPP */