summaryrefslogtreecommitdiff
path: root/boost/vmd/detail/parens_common.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/vmd/detail/parens_common.hpp')
-rw-r--r--boost/vmd/detail/parens_common.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/boost/vmd/detail/parens_common.hpp b/boost/vmd/detail/parens_common.hpp
new file mode 100644
index 0000000000..3a323ed432
--- /dev/null
+++ b/boost/vmd/detail/parens_common.hpp
@@ -0,0 +1,21 @@
+
+// (C) Copyright Edward Diener 2011-2015
+// Use, modification and distribution are subject to the Boost Software License,
+// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt).
+
+#if !defined(BOOST_VMD_DETAIL_PARENS_COMMON_HPP)
+#define BOOST_VMD_DETAIL_PARENS_COMMON_HPP
+
+#include <boost/preprocessor/facilities/expand.hpp>
+#include <boost/preprocessor/punctuation/paren.hpp>
+#include <boost/vmd/empty.hpp>
+
+#define BOOST_VMD_DETAIL_BEGIN_PARENS_EXP2(...) ( __VA_ARGS__ ) BOOST_VMD_EMPTY BOOST_PP_LPAREN()
+#define BOOST_VMD_DETAIL_BEGIN_PARENS_EXP1(vseq) BOOST_VMD_DETAIL_BEGIN_PARENS_EXP2 vseq BOOST_PP_RPAREN()
+#define BOOST_VMD_DETAIL_BEGIN_PARENS(vseq) BOOST_PP_EXPAND(BOOST_VMD_DETAIL_BEGIN_PARENS_EXP1(vseq))
+
+#define BOOST_VMD_DETAIL_AFTER_PARENS_DATA(vseq) BOOST_VMD_EMPTY vseq
+#define BOOST_VMD_DETAIL_SPLIT_PARENS(vseq) (BOOST_VMD_DETAIL_BEGIN_PARENS(vseq),BOOST_VMD_DETAIL_AFTER_PARENS_DATA(vseq))
+
+#endif /* BOOST_VMD_DETAIL_PARENS_COMMON_HPP */