This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Macros
Debug.hpp File Reference
#include <Settings/SettingsWrapper.hpp>
#include "PrintStream.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 FLUSH_ON_EVERY_DEBUG_STATEMENT
 
#define ENDL   endl
 
#define STR_HELPER(x)   #x
 
#define STR(x)   STR_HELPER(x)
 
#define FUNC_LOCATION   '[' << __PRETTY_FUNCTION__ << F(" @ line " STR(__LINE__) "]:\t")
 
#define LOCATION   "[" __FILE__ ":" STR(__LINE__) "]:\t"
 
#define NAMEDVALUE(x)   F(STR(x) " = ") << x
 
#define DEBUG(x)
 
#define DEBUGREF(x)
 
#define DEBUGFN(x)
 
#define DEBUGTIME(x)
 
#define DEBUGVAL(...)
 

Macro Definition Documentation

◆ FLUSH_ON_EVERY_DEBUG_STATEMENT

#define FLUSH_ON_EVERY_DEBUG_STATEMENT

Definition at line 7 of file Debug.hpp.

◆ ENDL

#define ENDL   endl

Definition at line 13 of file Debug.hpp.

◆ STR_HELPER

#define STR_HELPER (   x)    #x

Definition at line 56 of file Debug.hpp.

◆ STR

#define STR (   x)    STR_HELPER(x)

Definition at line 57 of file Debug.hpp.

◆ FUNC_LOCATION

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

Definition at line 59 of file Debug.hpp.

◆ LOCATION

#define LOCATION   "[" __FILE__ ":" STR(__LINE__) "]:\t"

Definition at line 61 of file Debug.hpp.

◆ NAMEDVALUE

#define NAMEDVALUE (   x)    F(STR(x) " = ") << x

Definition at line 63 of file Debug.hpp.

◆ DEBUG

#define DEBUG (   x)
Value:
do { \
} while (0)

Definition at line 158 of file Debug.hpp.

◆ DEBUGREF

#define DEBUGREF (   x)
Value:
do { \
} while (0)

Definition at line 161 of file Debug.hpp.

◆ DEBUGFN

#define DEBUGFN (   x)
Value:
do { \
} while (0)

Definition at line 164 of file Debug.hpp.

◆ DEBUGTIME

#define DEBUGTIME (   x)
Value:
do { \
} while (0)

Definition at line 168 of file Debug.hpp.

◆ DEBUGVAL

#define DEBUGVAL (   ...)
Value:
do { \
} while (0)

Definition at line 172 of file Debug.hpp.