Go to the source code of this file.
Macros | |
#define | MC_RTC_STRINGIFY_(x) #x |
#define | MC_RTC_STRINGIFY(x) MC_RTC_STRINGIFY_(x) |
#define | MC_RTC_PRAGMA(x) _Pragma(MC_RTC_STRINGIFY(x)) |
#define | MC_RTC_WN(fun, ...) |
#define | MC_RTC_MAP2_0(fun) |
#define | MC_RTC_MAP2_1(fun, X, Y) fun(X, Y) |
#define | MC_RTC_MAP2_2(fun, X, Y, ...) fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_1(fun, __VA_ARGS__)) |
#define | MC_RTC_MAP2_3(fun, X, Y, ...) fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_2(fun, __VA_ARGS__)) |
#define | MC_RTC_MAP2_4(fun, X, Y, ...) fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_3(fun, __VA_ARGS__)) |
#define | MC_RTC_MAP2_5(fun, X, Y, ...) fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_4(fun, __VA_ARGS__)) |
#define | MC_RTC_MAP2_6(fun, X, Y, ...) fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_5(fun, __VA_ARGS__)) |
#define | MC_RTC_MAP2_7(fun, X, Y, ...) fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_6(fun, __VA_ARGS__)) |
#define | MC_RTC_MAP2_8(fun, X, Y, ...) fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_7(fun, __VA_ARGS__)) |
#define | MC_RTC_MAP2_9(fun, X, Y, ...) fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_8(fun, __VA_ARGS__)) |
#define | MC_RTC_MAP2_10(fun, X, Y, ...) fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_9(fun, __VA_ARGS__)) |
#define | MC_RTC_GET_MACRO(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, NAME, ...) NAME |
#define | MC_RTC_MAP_TWO_ARGS(fun, ...) |
#define | MC_RTC_GCC_diagnostic_ignored(x) |
#define | MC_RTC_ClangOnly_diagnostic_ignored(x) |
#define | MC_RTC_GCCOnly_diagnostic_ignored(x) |
#define | MC_RTC_MSVC_diagnostic_ignored(x) |
#define | MC_RTC_diagnostic_ignored_(c, w) MC_RTC_##c##_diagnostic_ignored(w) |
#define | MC_RTC_diagnostic_ignored(...) MC_RTC_MAP_TWO_ARGS(MC_RTC_diagnostic_ignored_, __VA_ARGS__) |
#define MC_RTC_ClangOnly_diagnostic_ignored | ( | x | ) |
#define MC_RTC_diagnostic_ignored | ( | ... | ) | MC_RTC_MAP_TWO_ARGS(MC_RTC_diagnostic_ignored_, __VA_ARGS__) |
Ignore warning by compiler. Used as MC_RTC_diagnostic_ignored(compiler1, warningID1, compiler2, warningID2, ...).
#define MC_RTC_diagnostic_ignored_ | ( | c, | |
w | |||
) | MC_RTC_##c##_diagnostic_ignored(w) |
Helper macro for MC_RTC_diagnostic_ignored
#define MC_RTC_GCC_diagnostic_ignored | ( | x | ) |
#define MC_RTC_GCCOnly_diagnostic_ignored | ( | x | ) |
#define MC_RTC_GET_MACRO | ( | _0, | |
_1, | |||
_2, | |||
_3, | |||
_4, | |||
_5, | |||
_6, | |||
_7, | |||
_8, | |||
_9, | |||
_10, | |||
_11, | |||
_12, | |||
_13, | |||
_14, | |||
_15, | |||
_16, | |||
_17, | |||
_18, | |||
_19, | |||
_20, | |||
NAME, | |||
... | |||
) | NAME |
#define MC_RTC_MAP2_0 | ( | fun | ) |
Sub-function in FOR_EACH macro reading arguments two by two
#define MC_RTC_MAP2_1 | ( | fun, | |
X, | |||
Y | |||
) | fun(X, Y) |
#define MC_RTC_MAP2_10 | ( | fun, | |
X, | |||
Y, | |||
... | |||
) | fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_9(fun, __VA_ARGS__)) |
#define MC_RTC_MAP2_2 | ( | fun, | |
X, | |||
Y, | |||
... | |||
) | fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_1(fun, __VA_ARGS__)) |
#define MC_RTC_MAP2_3 | ( | fun, | |
X, | |||
Y, | |||
... | |||
) | fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_2(fun, __VA_ARGS__)) |
#define MC_RTC_MAP2_4 | ( | fun, | |
X, | |||
Y, | |||
... | |||
) | fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_3(fun, __VA_ARGS__)) |
#define MC_RTC_MAP2_5 | ( | fun, | |
X, | |||
Y, | |||
... | |||
) | fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_4(fun, __VA_ARGS__)) |
#define MC_RTC_MAP2_6 | ( | fun, | |
X, | |||
Y, | |||
... | |||
) | fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_5(fun, __VA_ARGS__)) |
#define MC_RTC_MAP2_7 | ( | fun, | |
X, | |||
Y, | |||
... | |||
) | fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_6(fun, __VA_ARGS__)) |
#define MC_RTC_MAP2_8 | ( | fun, | |
X, | |||
Y, | |||
... | |||
) | fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_7(fun, __VA_ARGS__)) |
#define MC_RTC_MAP2_9 | ( | fun, | |
X, | |||
Y, | |||
... | |||
) | fun(X, Y) MC_RTC_PP_ID(MC_RTC_MAP2_8(fun, __VA_ARGS__)) |
#define MC_RTC_MAP_TWO_ARGS | ( | fun, | |
... | |||
) |
Transform fun(arg1, arg2, arg3, arg4, ...) into fun(arg1, arg2), fun(arg3, arg4), ...
#define MC_RTC_MSVC_diagnostic_ignored | ( | x | ) |
#define MC_RTC_PRAGMA | ( | x | ) | _Pragma(MC_RTC_STRINGIFY(x)) |
#define MC_RTC_STRINGIFY | ( | x | ) | MC_RTC_STRINGIFY_(x) |
#define MC_RTC_STRINGIFY_ | ( | x | ) | #x |
Transform a expression to string
#define MC_RTC_WN | ( | fun, | |
... | |||
) |
Signal wrong number of arguments