|
Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
This file includes macros for validating runtime conditions. More...
Go to the source code of this file.
Macros | |
| #define | otEXPECT(aCondition) |
| This checks for the specified condition, which is expected to commonly be true, and branches to the local label 'exit' if the condition is false. More... | |
| #define | otEXPECT_ACTION(aCondition, aAction) |
This checks for the specified condition, which is expected to commonly be true, and both executes anAction and branches to the local label 'exit' if the condition is false. More... | |
| #define | otEXIT_NOW(aAction) |
| This unconditionally executes aAction and branches to the local label 'exit'. More... | |
This file includes macros for validating runtime conditions.
| #define otEXIT_NOW | ( | aAction | ) |
This unconditionally executes aAction and branches to the local label 'exit'.
| [in] | aAction | An expression or block to execute. |
| #define otEXPECT | ( | aCondition | ) |
This checks for the specified condition, which is expected to commonly be true, and branches to the local label 'exit' if the condition is false.
| [in] | aCondition | A Boolean expression to be evaluated. |
| #define otEXPECT_ACTION | ( | aCondition, | |
| aAction | |||
| ) |
This checks for the specified condition, which is expected to commonly be true, and both executes anAction and branches to the local label 'exit' if the condition is false.
| [in] | aCondition | A Boolean expression to be evaluated. |
| [in] | aAction | An expression or block to execute when the assertion fails. |