Arduino Filters master
Filter library for Arduino
Macros
Debug.hpp File Reference
#include <AH/Settings/Warnings.hpp>
#include <AH/PrintStream/PrintStream.hpp>
#include <AH/Settings/SettingsWrapper.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   0
 Should the output stream be flushed after each debug statement? Enabling this feature can slow things down significantly, and is not supported on ESP32 / ESP8266. More...
 
#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. More...
 
#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   0

Should the output stream be flushed after each debug statement? Enabling this feature can slow things down significantly, and is not supported on ESP32 / ESP8266.

Definition at line 20 of file Debug.hpp.

◆ DEBUG_ENDL

#define DEBUG_ENDL   "\r\n"

Definition at line 55 of file Debug.hpp.

◆ DEBUG_STR_HELPER

#define DEBUG_STR_HELPER (   x)    #x

Definition at line 64 of file Debug.hpp.

◆ DEBUG_STR

#define DEBUG_STR (   x)    DEBUG_STR_HELPER(x)

Definition at line 65 of file Debug.hpp.

◆ DEBUG_FUNC_LOCATION

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

Definition at line 67 of file Debug.hpp.

◆ DEBUG_LOCATION

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

Definition at line 69 of file Debug.hpp.

◆ DEBUG_LOCK_MUTEX

#define DEBUG_LOCK_MUTEX

Definition at line 84 of file Debug.hpp.

◆ DEBUG

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

Definition at line 182 of file Debug.hpp.

◆ DEBUGREF

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

Definition at line 185 of file Debug.hpp.

◆ DEBUGFN

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

Definition at line 188 of file Debug.hpp.

◆ DEBUGTIME

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

Definition at line 191 of file Debug.hpp.

◆ DEBUGVAL

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

Definition at line 194 of file Debug.hpp.