parens_split.hpp 796 B

123456789101112131415161718192021222324
  1. // (C) Copyright Edward Diener 2011-2015
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #if !defined(BOOST_VMD_DETAIL_PARENS_SPLIT_HPP)
  6. #define BOOST_VMD_DETAIL_PARENS_SPLIT_HPP
  7. #include <boost/preprocessor/control/iif.hpp>
  8. #include <boost/preprocessor/punctuation/is_begin_parens.hpp>
  9. #include <boost/vmd/detail/empty_result.hpp>
  10. #include <boost/vmd/detail/parens_common.hpp>
  11. #define BOOST_VMD_DETAIL_PARENS_SPLIT(vseq) \
  12. BOOST_PP_IIF \
  13. ( \
  14. BOOST_PP_IS_BEGIN_PARENS(vseq), \
  15. BOOST_VMD_DETAIL_SPLIT_PARENS, \
  16. BOOST_VMD_DETAIL_EMPTY_RESULT \
  17. ) \
  18. (vseq) \
  19. /**/
  20. #endif /* BOOST_VMD_DETAIL_PARENS_SPLIT_HPP */