File indexing completed on 2025-01-18 09:48:53
0001 #
0002
0003
0004
0005
0006
0007
0008
0009 #
0010 #
0011 #
0012 #ifndef BOOST_PREPROCESSOR_REMOVE_PARENS_HPP
0013 #define BOOST_PREPROCESSOR_REMOVE_PARENS_HPP
0014
0015 #include <boost/preprocessor/config/config.hpp>
0016 #include <boost/preprocessor/control/iif.hpp>
0017 #include <boost/preprocessor/facilities/identity.hpp>
0018 #include <boost/preprocessor/punctuation/is_begin_parens.hpp>
0019 #include <boost/preprocessor/tuple/enum.hpp>
0020
0021 #define BOOST_PP_REMOVE_PARENS(param) \
0022 BOOST_PP_IIF \
0023 ( \
0024 BOOST_PP_IS_BEGIN_PARENS(param), \
0025 BOOST_PP_REMOVE_PARENS_DO, \
0026 BOOST_PP_IDENTITY \
0027 ) \
0028 (param)() \
0029
0030
0031 #define BOOST_PP_REMOVE_PARENS_DO(param) \
0032 BOOST_PP_IDENTITY(BOOST_PP_TUPLE_ENUM(param)) \
0033
0034
0035 #endif