Control Surface main
MIDI Control Surface library for Arduino
Namespaces | Macros | Functions
Error.hpp File Reference
#include <AH/Settings/Warnings.hpp>
#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. More...
 

Functions

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

Macro Definition Documentation

◆ ERROR

#define ERROR (   msg,
  errc 
)
Value:
do { \
USING_AH_NAMESPACE; \
DEBUGFN(msg << " (0x" << hex << uppercase << errc << dec \
<< nouppercase << ')'); \
fatalErrorExit(); \
} while (0)
Print & hex(Print &printer)
Definition: PrintStream.cpp:62
Print & nouppercase(Print &printer)
Definition: PrintStream.cpp:40
Print & uppercase(Print &printer)
Definition: PrintStream.cpp:35
Print & dec(Print &printer)
Definition: PrintStream.cpp:77

Definition at line 22 of file Error.hpp.