Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-20 09:01:21

0001 # /* **************************************************************************
0002 #  *                                                                          *
0003 #  *     (C) Copyright Edward Diener 2014.
0004 #  *     Distributed under the Boost Software License, Version 1.0. (See
0005 #  *     accompanying file LICENSE_1_0.txt or copy at
0006 #  *     http://www.boost.org/LICENSE_1_0.txt)
0007 #  *                                                                          *
0008 #  ************************************************************************** */
0009 0010 ">#
0011 # /* See http://www.boost.org for most recent version. */
0012 0013 ">#
0014 #ifndef BOOST_PREPROCESSOR_REMOVE_PARENS_HPP
0015 #define BOOST_PREPROCESSOR_REMOVE_PARENS_HPP
0016 
0017 #include <boost/preprocessor/config/config.hpp>
0018 #include <boost/preprocessor/control/iif.hpp>
0019 #include <boost/preprocessor/facilities/identity.hpp>
0020 #include <boost/preprocessor/punctuation/is_begin_parens.hpp>
0021 #include <boost/preprocessor/tuple/enum.hpp>
0022 
0023 #define BOOST_PP_REMOVE_PARENS(param) \
0024     BOOST_PP_IIF \
0025       ( \
0026       BOOST_PP_IS_BEGIN_PARENS(param), \
0027       BOOST_PP_REMOVE_PARENS_DO, \
0028       BOOST_PP_IDENTITY \
0029       ) \
0030     (param)() \
0031 /**/
0032 
0033 #define BOOST_PP_REMOVE_PARENS_DO(param) \
0034   BOOST_PP_IDENTITY(BOOST_PP_TUPLE_ENUM(param)) \
0035 /**/
0036 
0037 #endif /* BOOST_PREPROCESSOR_REMOVE_PARENS_HPP */