|
ZeroErr
|

Go to the source code of this file.
| #define _IS_EMPTY_CASE_0001 , |
| #define _ZEROERR_ISEMPTY | ( | _0, | |
| _1, | |||
| _2, | |||
| _3 | |||
| ) | ZEROERR_HAS_COMMA(ZEROERR_PASTE5(_IS_EMPTY_CASE_, _0, _1, _2, _3)) |
| #define ZEROERR_ARG16 | ( | _0, | |
| _1, | |||
| _2, | |||
| _3, | |||
| _4, | |||
| _5, | |||
| _6, | |||
| _7, | |||
| _8, | |||
| _9, | |||
| _10, | |||
| _11, | |||
| _12, | |||
| _13, | |||
| _14, | |||
| _15, | |||
| ... | |||
| ) | _15 |
| #define ZEROERR_CAT | ( | x, | |
| s | |||
| ) | ZEROERR_CAT_IMPL(x, s) |
| #define ZEROERR_CAT_IMPL | ( | s1, | |
| s2 | |||
| ) | s1##s2 |
| #define ZEROERR_CLANG 0 |
| #define ZEROERR_CLANG_SUPPRESS_WARNING | ( | w | ) |
| #define ZEROERR_CLANG_SUPPRESS_WARNING_POP |
| #define ZEROERR_CLANG_SUPPRESS_WARNING_PUSH |
| #define ZEROERR_CLANG_SUPPRESS_WARNING_WITH_PUSH | ( | w | ) |
| #define ZEROERR_COMPILER | ( | MAJOR, | |
| MINOR, | |||
| PATCH | |||
| ) | ((MAJOR) * 10000000 + (MINOR) * 100000 + (PATCH)) |
| #define ZEROERR_CPLUSPLUS __cplusplus |
| #define ZEROERR_EXPAND | ( | x | ) | x |
| #define ZEROERR_FUNC_SCOPE_BEGIN [&] |
| #define ZEROERR_FUNC_SCOPE_END () |
| #define ZEROERR_FUNC_SCOPE_RET | ( | v | ) | return v |
| #define ZEROERR_GCC 0 |
| #define ZEROERR_GCC_SUPPRESS_WARNING | ( | w | ) |
| #define ZEROERR_GCC_SUPPRESS_WARNING_POP |
| #define ZEROERR_GCC_SUPPRESS_WARNING_PUSH |
| #define ZEROERR_GCC_SUPPRESS_WARNING_WITH_PUSH | ( | w | ) |
| #define ZEROERR_HAS_COMMA | ( | ... | ) | ZEROERR_ARG16(__VA_ARGS__, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0) |
| #define ZEROERR_ICC 0 |
| #define ZEROERR_ISEMPTY | ( | ... | ) |
| #define ZEROERR_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN |
| #define ZEROERR_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END ZEROERR_MSVC_SUPPRESS_WARNING_POP |
| #define ZEROERR_MSVC 0 |
| #define ZEROERR_MSVC_SUPPRESS_WARNING | ( | w | ) |
| #define ZEROERR_MSVC_SUPPRESS_WARNING_POP |
| #define ZEROERR_MSVC_SUPPRESS_WARNING_PUSH |
| #define ZEROERR_MSVC_SUPPRESS_WARNING_WITH_PUSH | ( | w | ) |
| #define ZEROERR_NAMEGEN | ( | x | ) | ZEROERR_CAT(x, __LINE__) |
| #define ZEROERR_OS_UNKNOWN |
| #define ZEROERR_PASTE5 | ( | _0, | |
| _1, | |||
| _2, | |||
| _3, | |||
| _4 | |||
| ) | _0##_1##_2##_3##_4 |
| #define ZEROERR_STR | ( | x | ) | #x |
| #define ZEROERR_SUPPRESS_COMMON_WARNINGS_POP |
| #define ZEROERR_SUPPRESS_COMMON_WARNINGS_PUSH |
| #define ZEROERR_SUPPRESS_COMPARE |
| #define ZEROERR_SUPPRESS_COMPARE_POP |
| #define ZEROERR_SUPPRESS_VARIADIC_MACRO ZEROERR_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wgnu-zero-variadic-macro-arguments") |
| #define ZEROERR_SUPPRESS_VARIADIC_MACRO_POP ZEROERR_CLANG_SUPPRESS_WARNING_POP |
| #define ZEROERR_TRIGGER_PARENTHESIS_ | ( | ... | ) | , |
| #define ZEROERR_UNUSED | ( | x | ) | x |
Macro to suppress unused variable/parameter warnings
This macro can be used to mark variables or parameters as intentionally unused while maintaining cross-compiler compatibility. It handles different compiler-specific attributes and warning suppressions:
Usage example: void foo(ZEROERR_UNUSED(int x)) { // x is marked as intentionally unused }
| #define ZEROERR_USE_SHORT_LOG_MACRO |
| #define ZEROERR_VERSION (ZEROERR_VERSION_MAJOR * 10000 + ZEROERR_VERSION_MINOR * 100 + ZEROERR_VERSION_PATCH) |
| #define ZEROERR_VERSION_MAJOR 0 |
| #define ZEROERR_VERSION_MINOR 3 |
| #define ZEROERR_VERSION_PATCH 0 |
| #define ZEROERR_VERSION_STR ZEROERR_VERSION_STR_BUILDER(ZEROERR_VERSION_MAJOR, ZEROERR_VERSION_MINOR, ZEROERR_VERSION_PATCH) |
| #define ZEROERR_VERSION_STR_BUILDER | ( | a, | |
| b, | |||
| c | |||
| ) | ZEROERR_STR(a) "." ZEROERR_STR(b) "." ZEROERR_STR(c) |