aboutsummaryrefslogtreecommitdiff
path: root/src/common/platform
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-21 20:47:44 +0800
committercrupest <crupest@outlook.com>2022-02-21 20:47:44 +0800
commit6f398efaacd4cf733fcaedf29b648d17899071f0 (patch)
treef9bbd4102ce84c1714ba7dfd97c705ffce93f53e /src/common/platform
parentced1a63686e6c64cb574d74a34d1bbd07d0a668e (diff)
downloadcru-6f398efaacd4cf733fcaedf29b648d17899071f0.tar.gz
cru-6f398efaacd4cf733fcaedf29b648d17899071f0.tar.bz2
cru-6f398efaacd4cf733fcaedf29b648d17899071f0.zip
...
Diffstat (limited to 'src/common/platform')
-rw-r--r--src/common/platform/win/DebugLogTarget.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/platform/win/DebugLogTarget.cpp b/src/common/platform/win/DebugLogTarget.cpp
new file mode 100644
index 00000000..92d26449
--- /dev/null
+++ b/src/common/platform/win/DebugLogTarget.cpp
@@ -0,0 +1,10 @@
+#include "cru/common/platform/win/DebugLogTarget.h"
+
+namespace cru::platform::win {
+void WinDebugLogTarget::Write(::cru::log::LogLevel level, StringView s) {
+ CRU_UNUSED(level)
+
+ String m = s.ToString();
+ ::OutputDebugStringW(reinterpret_cast<const wchar_t*>(m.c_str()));
+}
+} // namespace cru::platform::win