Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Macros
DebugVal.hpp File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COUNT(...)   COUNT_HELPER(__VA_ARGS__, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1)
 
#define COUNT_HELPER(N1, N2, N3, N4, N5, N6, N7, N8, N9, N10, N, ...)   N
 
#define DEBUGVALN(N)   DEBUGVALN_HELPER(N)
 
#define DEBUGVALN_HELPER(N)   DEBUGVAL##N
 
#define DEBUGVAL10(x, ...)
 
#define DEBUGVAL9(x, ...)
 
#define DEBUGVAL8(x, ...)
 
#define DEBUGVAL7(x, ...)
 
#define DEBUGVAL6(x, ...)
 
#define DEBUGVAL5(x, ...)
 
#define DEBUGVAL4(x, ...)
 
#define DEBUGVAL3(x, ...)
 
#define DEBUGVAL2(x, ...)
 
#define DEBUGVAL1(x)
 

Macro Definition Documentation

◆ COUNT

#define COUNT ( ...)    COUNT_HELPER(__VA_ARGS__, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1)

Definition at line 1 of file DebugVal.hpp.

◆ COUNT_HELPER

#define COUNT_HELPER ( N1,
N2,
N3,
N4,
N5,
N6,
N7,
N8,
N9,
N10,
N,
... )   N

Definition at line 2 of file DebugVal.hpp.

◆ DEBUGVALN

#define DEBUGVALN ( N)    DEBUGVALN_HELPER(N)

Definition at line 4 of file DebugVal.hpp.

◆ DEBUGVALN_HELPER

#define DEBUGVALN_HELPER ( N)    DEBUGVAL##N

Definition at line 5 of file DebugVal.hpp.

◆ DEBUGVAL10

#define DEBUGVAL10 ( x,
... )
Value:
do { \
DEBUG_OUT << NAMEDVALUE(x) << ", "; \
DEBUGVAL9(__VA_ARGS__); \
} while (0)
#define DEBUG_OUT
The debug output.
#define NAMEDVALUE(x)
Macro for printing an expression as a string, followed by its value.
Definition Debug.hpp:89

Definition at line 7 of file DebugVal.hpp.

◆ DEBUGVAL9

#define DEBUGVAL9 ( x,
... )
Value:
do { \
DEBUG_OUT << NAMEDVALUE(x) << ", "; \
DEBUGVAL8(__VA_ARGS__); \
} while (0)

Definition at line 12 of file DebugVal.hpp.

◆ DEBUGVAL8

#define DEBUGVAL8 ( x,
... )
Value:
do { \
DEBUG_OUT << NAMEDVALUE(x) << ", "; \
DEBUGVAL7(__VA_ARGS__); \
} while (0)

Definition at line 17 of file DebugVal.hpp.

◆ DEBUGVAL7

#define DEBUGVAL7 ( x,
... )
Value:
do { \
DEBUG_OUT << NAMEDVALUE(x) << ", "; \
DEBUGVAL6(__VA_ARGS__); \
} while (0)

Definition at line 22 of file DebugVal.hpp.

◆ DEBUGVAL6

#define DEBUGVAL6 ( x,
... )
Value:
do { \
DEBUG_OUT << NAMEDVALUE(x) << ", "; \
DEBUGVAL5(__VA_ARGS__); \
} while (0)

Definition at line 27 of file DebugVal.hpp.

◆ DEBUGVAL5

#define DEBUGVAL5 ( x,
... )
Value:
do { \
DEBUG_OUT << NAMEDVALUE(x) << ", "; \
DEBUGVAL4(__VA_ARGS__); \
} while (0)

Definition at line 32 of file DebugVal.hpp.

◆ DEBUGVAL4

#define DEBUGVAL4 ( x,
... )
Value:
do { \
DEBUG_OUT << NAMEDVALUE(x) << ", "; \
DEBUGVAL3(__VA_ARGS__); \
} while (0)

Definition at line 37 of file DebugVal.hpp.

◆ DEBUGVAL3

#define DEBUGVAL3 ( x,
... )
Value:
do { \
DEBUG_OUT << NAMEDVALUE(x) << ", "; \
DEBUGVAL2(__VA_ARGS__); \
} while (0)

Definition at line 42 of file DebugVal.hpp.

◆ DEBUGVAL2

#define DEBUGVAL2 ( x,
... )
Value:
do { \
DEBUG_OUT << NAMEDVALUE(x) << ", "; \
DEBUGVAL1(__VA_ARGS__); \
} while (0)

Definition at line 47 of file DebugVal.hpp.

◆ DEBUGVAL1

#define DEBUGVAL1 ( x)
Value:
do { \
} while (0)
#define DEBUG_ENDL
Definition Debug.hpp:52

Definition at line 52 of file DebugVal.hpp.