extras: improve debug print line (dpl) debugging tools (111d8299ce536c62d57c1dc06ea81...
[sdk] / extras / include / dpl.h
1 // dpl.h
2 // see dpl.c
3
4 #ifndef _DPL_H
5 #define _DPL_H 1
6
7 // Debug Print Line Format (_dplf)
8 #ifdef _DPL_ON
9 #define _dplf(...) __dplf(__FILE__, __LINE__, ##__VA_ARGS__)
10 void __dplf(const char * file, int line, int indent, const char * format, ...);
11 #else
12 #define _dplf(...)
13 #endif
14
15 // Debug Print Channel Line Format (_dpclf)
16 #ifdef _DPL_ON
17 #define _dpclf(...) __dpclf(__FILE__, __LINE__, ##__VA_ARGS__)
18 void __dpclf(const char * file, int line, const char ** channels, int channel, int indent, const char * format, ...);
19 #else
20 #define _dpclf(...)
21 #endif
22
23 #endif // dpl.h