|
Arduino Helpers
master
Utility library for Arduino
|
Macros for handling and reporting both fatal and non-fatal errors.
Macros | |
| #define | ERROR(msg, errc) |
Print the error message and error code, and stop the execution if FATAL_ERRORS are enabled. More... | |
| #define | FATAL_ERROR(msg, errc) |
| Print the error message and error code, and stop the execution. More... | |
| #define ERROR | ( | msg, | |
| errc | |||
| ) |
Print the error message and error code, and stop the execution if FATAL_ERRORS are enabled.
Otherwise just prints the error.
| msg | The information to print, can contain streaming operators (<<) to print multiple things. |
| errc | A unique error code. |
| #define FATAL_ERROR | ( | msg, | |
| errc | |||
| ) |
Print the error message and error code, and stop the execution.
Doesn't depend on FATAL_ERRORS, it always stops the execution.
| msg | The information to print, can contain streaming operators (<<) to print multiple things. |
| errc | A unique error code. |