messagepack implementation for embedded systems (mbed / arduino)
Dependents: hello_message_pack
is_begin_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_DETAIL_IS_BEGIN_PARENS_HPP 00013 #define MSGPACK_PREPROCESSOR_DETAIL_IS_BEGIN_PARENS_HPP 00014 00015 #if MSGPACK_PP_VARIADICS_MSVC 00016 00017 #include <msgpack/preprocessor/facilities/empty.hpp> 00018 00019 #define MSGPACK_PP_DETAIL_VD_IBP_CAT(a, b) MSGPACK_PP_DETAIL_VD_IBP_CAT_I(a, b) 00020 #define MSGPACK_PP_DETAIL_VD_IBP_CAT_I(a, b) MSGPACK_PP_DETAIL_VD_IBP_CAT_II(a ## b) 00021 #define MSGPACK_PP_DETAIL_VD_IBP_CAT_II(res) res 00022 00023 #define MSGPACK_PP_DETAIL_IBP_SPLIT(i, ...) \ 00024 MSGPACK_PP_DETAIL_VD_IBP_CAT(MSGPACK_PP_DETAIL_IBP_PRIMITIVE_CAT(MSGPACK_PP_DETAIL_IBP_SPLIT_,i)(__VA_ARGS__),MSGPACK_PP_EMPTY()) \ 00025 /**/ 00026 00027 #define MSGPACK_PP_DETAIL_IBP_IS_VARIADIC_C(...) 1 1 00028 00029 #else 00030 00031 #define MSGPACK_PP_DETAIL_IBP_SPLIT(i, ...) \ 00032 MSGPACK_PP_DETAIL_IBP_PRIMITIVE_CAT(MSGPACK_PP_DETAIL_IBP_SPLIT_,i)(__VA_ARGS__) \ 00033 /**/ 00034 00035 #define MSGPACK_PP_DETAIL_IBP_IS_VARIADIC_C(...) 1 00036 00037 #endif /* MSGPACK_PP_VARIADICS_MSVC */ 00038 00039 #define MSGPACK_PP_DETAIL_IBP_SPLIT_0(a, ...) a 00040 #define MSGPACK_PP_DETAIL_IBP_SPLIT_1(a, ...) __VA_ARGS__ 00041 00042 #define MSGPACK_PP_DETAIL_IBP_CAT(a, ...) MSGPACK_PP_DETAIL_IBP_PRIMITIVE_CAT(a,__VA_ARGS__) 00043 #define MSGPACK_PP_DETAIL_IBP_PRIMITIVE_CAT(a, ...) a ## __VA_ARGS__ 00044 00045 #define MSGPACK_PP_DETAIL_IBP_IS_VARIADIC_R_1 1, 00046 #define MSGPACK_PP_DETAIL_IBP_IS_VARIADIC_R_MSGPACK_PP_DETAIL_IBP_IS_VARIADIC_C 0, 00047 00048 #endif /* MSGPACK_PREPROCESSOR_DETAIL_IS_BEGIN_PARENS_HPP */
Generated on Tue Jul 12 2022 22:51:45 by
![doxygen](doxygen.png)