GadgetSeed  0.9.6
dtprintf.h
[詳解]
1 /** @file
2  @brief アプリケーション(タスク)デバッグ用マクロ
3 
4  @date 2017.11.21
5  @author Takashi SHUDO
6 */
7 
8 #ifndef DTPRINTF_H
9 #define DTPRINTF_H
10 
11 #include "tprintf.h"
12 
13 #ifdef DEBUGTBITS
14 #define DTPRINTF(bits, format, ...) if(bits & DEBUGTBITS) eprintf(format, ## __VA_ARGS__)
15 #define DTFPRINTF(bits, format, ...) if(bits & DEBUGTBITS) eprintf("%s: " format, __FUNCTION__, ## __VA_ARGS__)
16 #define XDUMP(bits, data, len) if(bits & DEBUGTBITS) xdump(data, len)
17 #else
18 #define DTPRINTF(bits, format, ...)
19 #define DTFPRINTF(bits, format, ...)
20 #define XDUMP(bits, data, len)
21 #endif
22 
23 #endif // DTPRINTF_H
機能限定printf