Even more base/logging.h removal and fixes

This commit is contained in:
Henrik Rydgård
2020-08-15 19:09:01 +02:00
parent cca7511e6a
commit b22083e7a6
12 changed files with 37 additions and 45 deletions
-21
View File
@@ -21,27 +21,6 @@
#include "base/buffer.h"
#include "base/stringutil.h"
#ifdef _WIN32
void OutputDebugStringUTF8(const char *p) {
wchar_t temp[4096];
int len = std::min(4095, (int)strlen(p));
int size = (int)MultiByteToWideChar(CP_UTF8, 0, p, len, NULL, 0);
MultiByteToWideChar(CP_UTF8, 0, p, len, temp, size);
temp[size] = 0;
OutputDebugString(temp);
}
#else
void OutputDebugStringUTF8(const char *p) {
INFO_LOG(SYSTEM, "%s", p);
}
#endif
std::string LineNumberString(const std::string &str) {
std::stringstream input(str);
std::stringstream output;