Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
Error.hpp File Reference
#include <AH/Debug/Debug.hpp>
+ Include dependency graph for Error.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  AH
 PrintStream library
 

Macros

#define ERROR(msg, errc)
 
#define FATAL_ERROR(msg, errc)
 Print the error message and error code, and stop the execution.
 

Functions

void fatalErrorExit () __attribute__((noreturn))
 Function that executes and loops forever, blinking the built-in LED when a fatal error is encountered.
 

Macro Definition Documentation

◆ ERROR

#define ERROR ( msg,
errc )
Value:
do { \
DEBUGFN(msg << " (0x" << hex << uppercase << errc << dec \
<< nouppercase << ')'); \
fatalErrorExit(); \
} while (0)
#define USING_AH_NAMESPACE

Definition at line 19 of file Error.hpp.