Loading...
Searching...
No Matches
Go to the documentation of this file.
2#define __DEBUG_H__ 20061110
8#define __DEBUG_TRACE__ "D:/temp/dcl_hsc_ap2.txt"
10#define __DEBUG_TRACE__ "/dev/pts/0"
14#define __THIS_FILE__ L"" __FILE__
17static void trace(
const char* fmt, ...)
28 vfprintf(fp, fmt, args);
35 trace("%ls(%d) %s: %s", __THIS_FILE__, __LINE__, __PRETTY_FUNCTION__, str)
36#define _TRACE1(fmt, arg1) \
37 trace("%ls(%d) %s: " fmt, __THIS_FILE__, __LINE__, __PRETTY_FUNCTION__, arg1)
38#define _TRACE2(fmt, arg1, arg2) \
39 trace("%ls(%d) %s: " fmt, __THIS_FILE__, __LINE__, __PRETTY_FUNCTION__, arg1, arg2)
40#define _TRACE3(fmt, arg1, arg2, arg3) \
41 trace("%ls(%d) %s: " fmt, __THIS_FILE__, __LINE__, __PRETTY_FUNCTION__, arg1, arg2, arg3)
42#define _TRACE4(fmt, arg1, arg2, arg3, arg4) \
43 trace("%ls(%d) %s: " fmt, __THIS_FILE__, __LINE__, __PRETTY_FUNCTION__, arg1, arg2, arg3, arg4)