Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0.1, 1.0.2, and 1.0.3

stable shellext: put platform into debug prefix

Changeset 0fe7f965f9e3

Parent fb73f93cce70

by Adrian Buehlmann

Changes to one file · Browse files at 0fe7f965f9e3 Showing diff from parent fb73f93cce70 Diff from another changeset...

 
23
24
25
 
 
 
 
 
 
 
 
26
27
28
29
30
31
 
32
33
34
35
36
37
 
38
39
40
 
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
39
40
41
42
43
44
 
45
46
47
48
@@ -23,18 +23,26 @@
 #ifdef THG_DEBUG   #include <sstream>   + #ifdef _M_X64 + #define THG_PREFIX "[THGx64] " + #define THG_PREFIXL L"[THGx64] " + #else + #define THG_PREFIX "[THGx86] " + #define THG_PREFIXL L"[THGx86] " + #endif +   // TDEBUG_TRACE() prints debugging messages to Windows' debugger display.   // The messages can be viewed with Sysinternals DebugView, which may be   // downloaded from Microsoft TechNet.   #define TDEBUG_TRACE(s) if (ThgDebug::enabled()) { \   std::stringstream _the_msg; \ - _the_msg << "[THG] " << s; \ + _the_msg << THG_PREFIX << s; \   std::string _the_str = _the_msg.str(); \   OutputDebugStringA(_the_str.c_str()); \   }   #define TDEBUG_TRACEW(s) if (ThgDebug::enabled()) { \   std::basic_stringstream<wchar_t> _the_msg; \ - _the_msg << L"[THG] " << s; \ + _the_msg << THG_PREFIXL << s; \   std::wstring _the_str = _the_msg.str(); \   OutputDebugStringW(_the_str.c_str()); \   }