]> cloudbase.mooo.com Git - z180-stamp.git/blob - avr/debug.h
c341301a9de49d0953122956005d92beb1a17793
[z180-stamp.git] / avr / debug.h
1
2 #ifndef DEBUG_H_
3 #define DEBUG_H_
4
5 #include <avr/pgmspace.h>
6
7 #ifdef DEBUG
8 #define DBG_P(lvl, format, ...) if (DEBUG>=lvl) \
9 fprintf_P( stderr, PSTR(format), ##__VA_ARGS__ )
10 #else
11 #define DBG_P(lvl, ...)
12 #endif
13
14 #endif /* DEBUG_H_ */