Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Macros to abstract toolchain specific capabilities. More...
Go to the source code of this file.
Macros | |
#define | HAS_BUILTIN(x) |
Check if the compiler supports the built-in function x. | |
#define | TOOLCHAIN_GCC_VERSION 0 |
GCC version in xxyyzz for xx.yy.zz. | |
#define | TOOLCHAIN_CLANG_VERSION 0 |
Clang version in xxyyzz for xx.yy.zz. | |
#define | TOOLCHAIN_HAS_PRAGMA_DIAG 0 |
Indicate if toolchain supports #pragma diagnostics. | |
#define | TOOLCHAIN_HAS_C_GENERIC 0 |
Indicate if toolchain supports C Generic. | |
#define | TOOLCHAIN_HAS_C_AUTO_TYPE 0 |
Indicate if toolchain supports C __auto_type. | |
#define | TOOLCHAIN_HAS_ZLA 0 |
Indicate if toolchain supports Zero Length Arrays. | |
#define | TOOLCHAIN_IGNORE_WSHADOW_BEGIN |
Begin of block to ignore -Wshadow. | |
#define | TOOLCHAIN_IGNORE_WSHADOW_END |
End of block to ignore -Wshadow. | |
Macros to abstract toolchain specific capabilities.
This file contains various macros to abstract compiler capabilities that utilize toolchain specific attributes and/or pragmas.
#define HAS_BUILTIN | ( | x | ) |
Check if the compiler supports the built-in function x.
This macro is for use with conditional compilation to enable code using a builtin function that may not be available in every compiler.
#define TOOLCHAIN_CLANG_VERSION 0 |
Clang version in xxyyzz for xx.yy.zz.
Zero if not Clang compatible.
#define TOOLCHAIN_GCC_VERSION 0 |
GCC version in xxyyzz for xx.yy.zz.
Zero if not GCC compatible.
#define TOOLCHAIN_HAS_C_AUTO_TYPE 0 |
Indicate if toolchain supports C __auto_type.
#define TOOLCHAIN_HAS_C_GENERIC 0 |
Indicate if toolchain supports C Generic.
#define TOOLCHAIN_HAS_PRAGMA_DIAG 0 |
Indicate if toolchain supports #pragma diagnostics.
#define TOOLCHAIN_HAS_ZLA 0 |
Indicate if toolchain supports Zero Length Arrays.
#define TOOLCHAIN_IGNORE_WSHADOW_BEGIN |
Begin of block to ignore -Wshadow.
To be used inside another macro. Only for toolchain supporting _Pragma("GCC diagnostic ...").
#define TOOLCHAIN_IGNORE_WSHADOW_END |
End of block to ignore -Wshadow.
To be used inside another macro. Only for toolchain supporting _Pragma("GCC diagnostic ...").