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