forked from chcg/PythonScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugTrace.h
More file actions
31 lines (21 loc) · 631 Bytes
/
DebugTrace.h
File metadata and controls
31 lines (21 loc) · 631 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef DEBUGTRACE_20140215_H
#define DEBUGTRACE_20140215_H
#ifdef _DEBUG
static long s_debugLineCount = 0;
template <typename T>
void debugTrace(T msg)
{
std::wstringstream debug;
debug << msg;
debugTraceStr(debug);
}
void printStack();
void debugTraceStr(const std::wstringstream& item);
void debugTraceVars(const char *format, ...);
# define DEBUG_TRACE(msg) debugTrace(msg)
# define DEBUG_TRACE_S(args) debugTraceVars args
#else
# define DEBUG_TRACE(msg)
# define DEBUG_TRACE_S(args)
#endif
#endif // DEBUGTRACE_20140215_H