is_begin_parens.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #include <boost/preprocessor/punctuation/detail/is_begin_parens.hpp>
  16. #if BOOST_PP_VARIADICS_MSVC && _MSC_VER <= 1400
  17. #define BOOST_PP_IS_BEGIN_PARENS(param) \
  18. BOOST_PP_DETAIL_IBP_SPLIT \
  19. ( \
  20. 0, \
  21. BOOST_PP_DETAIL_IBP_CAT \
  22. ( \
  23. BOOST_PP_DETAIL_IBP_IS_VARIADIC_R_, \
  24. BOOST_PP_DETAIL_IBP_IS_VARIADIC_C param \
  25. ) \
  26. ) \
  27. /**/
  28. #else
  29. #define BOOST_PP_IS_BEGIN_PARENS(...) \
  30. BOOST_PP_DETAIL_IBP_SPLIT \
  31. ( \
  32. 0, \
  33. BOOST_PP_DETAIL_IBP_CAT \
  34. ( \
  35. BOOST_PP_DETAIL_IBP_IS_VARIADIC_R_, \
  36. BOOST_PP_DETAIL_IBP_IS_VARIADIC_C __VA_ARGS__ \
  37. ) \
  38. ) \
  39. /**/
  40. #endif /* BOOST_PP_VARIADICS_MSVC && _MSC_VER <= 1400 */
  41. #endif /* BOOST_PREPROCESSOR_IS_BEGIN_PARENS_HPP */