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

Go to the source code of this file.

Macros

#define DEBUG_ENDL   "\r\n"
 
#define DEBUG_STR_HELPER(x)   #x
 
#define DEBUG_STR(x)   DEBUG_STR_HELPER(x)
 
#define DEBUG_FUNC_LOCATION    '[' << __PRETTY_FUNCTION__ << F(" @ line " DEBUG_STR(__LINE__) "]:\t")
 
#define DEBUG_LOCATION   "[" __FILE__ ":" DEBUG_STR(__LINE__) "]:\t"
 
#define DEBUG_LOCK_MUTEX
 
#define NAMEDVALUE(x)   F(DEBUG_STR(x) " = ") << x
 Macro for printing an expression as a string, followed by its value.
 
#define DEBUG(x)
 Print an expression to the debug output if debugging is enabled.
 
#define DEBUGREF(x)
 Print an expression and its location (file and line number) to the debug output if debugging is enabled.
 
#define DEBUGFN(x)
 Print an expression and its function (function name and line number) to the debug output if debugging is enabled.
 
#define DEBUGTIME(x)
 Print an expression and the time since startup to the debug output if debugging is enabled.
 
#define DEBUGVAL(...)   DEBUGVALN(COUNT(__VA_ARGS__))(__VA_ARGS__)
 Print multiple expressions and their values to the debug output if debugging is enabled.
 

Macro Definition Documentation

◆ DEBUG_ENDL

#define DEBUG_ENDL   "\r\n"

Definition at line 52 of file Debug.hpp.

◆ DEBUG_STR_HELPER

#define DEBUG_STR_HELPER ( x)    #x

Definition at line 61 of file Debug.hpp.

◆ DEBUG_STR

#define DEBUG_STR ( x)    DEBUG_STR_HELPER(x)

Definition at line 62 of file Debug.hpp.

◆ DEBUG_FUNC_LOCATION

#define DEBUG_FUNC_LOCATION    '[' << __PRETTY_FUNCTION__ << F(" @ line " DEBUG_STR(__LINE__) "]:\t")

Definition at line 64 of file Debug.hpp.

◆ DEBUG_LOCATION

#define DEBUG_LOCATION   "[" __FILE__ ":" DEBUG_STR(__LINE__) "]:\t"

Definition at line 66 of file Debug.hpp.

◆ DEBUG_LOCK_MUTEX

#define DEBUG_LOCK_MUTEX

Definition at line 81 of file Debug.hpp.