![]() |
0.01.00
|
This file includes macros for validating runtime conditions. More...
Go to the source code of this file.
Macros | |
#define | otALIGNED_VAR_SIZE(size, align_type) (((size) + (sizeof (align_type) - 1)) / sizeof (align_type)) |
#define | otDEFINE_ALIGNED_VAR(name, size, align_type) align_type name[(((size) + (sizeof (align_type) - 1)) / sizeof (align_type))] |
#define | SuccessOrExit(aStatus) |
This checks for the specified status, which is expected to commonly be successful, and branches to the local label 'exit' if the status is unsuccessful. More... | |
#define | VerifyOrExit(aCondition, ...) |
This checks for the specified condition, which is expected to commonly be true, and both executes ... More... | |
#define | ExitNow(...) |
This unconditionally executes ... More... | |
#define | IgnoreReturnValue(aStatement) |
This file includes macros for validating runtime conditions.
#define ExitNow | ( | ... | ) |
This unconditionally executes ...
and branches to the local label 'exit'.
[in] | ... | An optional expression or block to execute when the assertion fails. |
#define IgnoreReturnValue | ( | aStatement | ) |
#define SuccessOrExit | ( | aStatus | ) |
This checks for the specified status, which is expected to commonly be successful, and branches to the local label 'exit' if the status is unsuccessful.
[in] | aStatus | A scalar status to be evaluated against zero (0). |
#define VerifyOrExit | ( | aCondition, | |
... | |||
) |
This checks for the specified condition, which is expected to commonly be true, and both executes ...
and branches to the local label 'exit' if the condition is false.
[in] | aCondition | A Boolean expression to be evaluated. |
[in] | ... | An expression or block to execute when the assertion fails. |