Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:53

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 # /* See http://www.boost.org for most recent version. */
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 /* BOOST_PREPROCESSOR_REMOVE_PARENS_HPP */