|
Adafruit Si5351 Library
|
#include "errors.h"Go to the source code of this file.
Macros | |
| #define | ASSERT(condition, returnValue) |
| Checks the condition, and if the assert fails the supplied returnValue will be returned in the calling function. More... | |
| #define | ASSERT_STATUS(sts) |
| Checks the supplied err_t value (sts), and if it is not equal to ERROR_NONE the sts value will be returned. More... | |
| #define ASSERT | ( | condition, | |
| returnValue | |||
| ) |
Checks the condition, and if the assert fails the supplied returnValue will be returned in the calling function.
| #define ASSERT_STATUS | ( | sts | ) |
Checks the supplied err_t value (sts), and if it is not equal to ERROR_NONE the sts value will be returned.
This macro is useful to check if a function returned an error without bloating your own code with endless "if (error) {...}".
1.8.13