This module defines a toolchain abstraction layer through macros. More...
Macros | |
#define | OT_TOOL_PACKED_BEGIN |
#define | OT_TOOL_PACKED_FIELD |
#define | OT_TOOL_PACKED_END |
#define | OT_TOOL_WEAK |
#define | OT_UNUSED_VARIABLE(VARIABLE) |
#define | OT_UNREACHABLE_CODE(CODE) CODE |
This module defines a toolchain abstraction layer through macros.
Usage:
#define OT_TOOL_PACKED_BEGIN |
Compiler-specific indication that a class or struct must be byte packed.
OT_TOOL_PACKED_BEGIN struct otIp6Prefix OT_TOOL_PACKED_END |
Compiler-specific indication at the end of a byte packed class or struct.
#define OT_TOOL_PACKED_FIELD |
Indicate to the compiler a nested struct or union to be packed within byte packed class or struct.
#define OT_TOOL_WEAK |
Compiler-specific weak symbol modifier.
#define OT_UNREACHABLE_CODE | ( | CODE | ) | CODE |
Suppress Unreachable code warning in specific toolchains.
#define OT_UNUSED_VARIABLE | ( | VARIABLE | ) |
Suppress unused variable warning in specific toolchains.