equal
deleted
inserted
replaced
100 #elif (_MSC_VER >= 1400) |
100 #elif (_MSC_VER >= 1400) |
101 //Visual Studio 2005 and above |
101 //Visual Studio 2005 and above |
102 #ifdef UNICODE |
102 #ifdef UNICODE |
103 #define MSG(...) \ |
103 #define MSG(...) \ |
104 do{wchar_t msg[300];\ |
104 do{wchar_t msg[300];\ |
105 swprintf(msg,L##__VA_ARGS__);\ |
105 swprintf(msg,sizeof(msg)/sizeof(msg[0]), L##__VA_ARGS__); \ |
106 OutputDebugString(msg);}while(0) |
106 OutputDebugString(msg);}while(0) |
107 #else |
107 #else |
108 #define MSG(...) \ |
108 #define MSG(...) \ |
109 do{char msg[300];\ |
109 do{char msg[300];\ |
110 sprintf(msg,##__VA_ARGS__);\ |
110 sprintf(msg,##__VA_ARGS__);\ |