messagepack implementation for embedded systems (mbed / arduino)
Dependents: hello_message_pack
remove_parens.hpp
00001 # /* ************************************************************************** 00002 # * * 00003 # * (C) Copyright Edward Diener 2014. 00004 # * Distributed under the Boost Software License, Version 1.0. (See 00005 # * accompanying file LICENSE_1_0.txt or copy at 00006 # * http://www.boost.org/LICENSE_1_0.txt) 00007 # * * 00008 # ************************************************************************** */ 00009 # 00010 # /* See http://www.boost.org for most recent version. */ 00011 # 00012 #ifndef MSGPACK_PREPROCESSOR_REMOVE_PARENS_HPP 00013 #define MSGPACK_PREPROCESSOR_REMOVE_PARENS_HPP 00014 00015 #include <msgpack/preprocessor/config/config.hpp> 00016 00017 #if MSGPACK_PP_VARIADICS 00018 00019 #include <msgpack/preprocessor/control/iif.hpp> 00020 #include <msgpack/preprocessor/facilities/identity.hpp> 00021 #include <msgpack/preprocessor/punctuation/is_begin_parens.hpp> 00022 #include <msgpack/preprocessor/tuple/enum.hpp> 00023 00024 #define MSGPACK_PP_REMOVE_PARENS(param) \ 00025 MSGPACK_PP_IIF \ 00026 ( \ 00027 MSGPACK_PP_IS_BEGIN_PARENS(param), \ 00028 MSGPACK_PP_REMOVE_PARENS_DO, \ 00029 MSGPACK_PP_IDENTITY \ 00030 ) \ 00031 (param)() \ 00032 /**/ 00033 00034 #define MSGPACK_PP_REMOVE_PARENS_DO(param) \ 00035 MSGPACK_PP_IDENTITY(MSGPACK_PP_TUPLE_ENUM(param)) \ 00036 /**/ 00037 00038 #endif /* MSGPACK_PP_VARIADICS */ 00039 #endif /* MSGPACK_PREPROCESSOR_REMOVE_PARENS_HPP */
Generated on Tue Jul 12 2022 22:51:46 by 1.7.2