Zephyr API 3.6.99
|
Common toolchain abstraction. More...
Go to the source code of this file.
Macros | |
#define | EXTERN_C extern |
#define | ZRESTRICT restrict |
#define | REQUIRES(sym) |
#define | ALWAYS_INLINE inline __attribute__((always_inline)) |
#define | STRINGIFY(s) |
#define | IS_PTR_ALIGNED_BYTES(ptr, bytes) |
#define | IS_PTR_ALIGNED(ptr, type) |
#define | LINKER_KEEP(symbol) |
Tag a symbol (e.g. | |
Common toolchain abstraction.
Macros to abstract compiler capabilities (common to all toolchains).
#define ALWAYS_INLINE inline __attribute__((always_inline)) |
#define EXTERN_C extern |
#define IS_PTR_ALIGNED | ( | ptr, | |
type ) |
#define IS_PTR_ALIGNED_BYTES | ( | ptr, | |
bytes ) |
#define LINKER_KEEP | ( | symbol | ) |
Tag a symbol (e.g.
function) to be kept in the binary even though it is not used.
It prevents symbol from being removed by the linker garbage collector. It is achieved by adding a pointer to that symbol to the kept memory section.
symbol | Symbol to keep. |
#define REQUIRES | ( | sym | ) |
#define STRINGIFY | ( | s | ) |
#define ZRESTRICT restrict |