Go to the source code of this file.
◆ ARRAY_LENGTH
| #define ARRAY_LENGTH |
( |
|
array | ) |
(sizeof((array)) / sizeof((array)[0])) |
Returns the number of elements in a statically allocated array. Must not be used on a pointer.
Definition at line 30 of file macros.h.
◆ BOOT_SECTION
Places a function in the .boot linker section. Must be placed before the return type in function definitions.
Definition at line 24 of file macros.h.
◆ MEMBER_SIZE
| #define MEMBER_SIZE |
( |
|
type, |
|
|
|
member |
|
) |
| (sizeof(((type *) 0)->member)) |
Macro for the size of a specific structure field.
Definition at line 6 of file macros.h.
◆ NORETURN
Marks a function as non-returning (e.g. loops forever or calls exit). Must be placed before the return type in function definitions.
Definition at line 18 of file macros.h.
◆ WEAK
| #define WEAK __attribute((weak)) |
Marks a function or variable as a weak symbol, allowing application code to override the default SDK implementation by providing a strong definition.
Definition at line 12 of file macros.h.