diff options
author | crupest <crupest@outlook.com> | 2022-02-21 20:47:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-21 20:47:44 +0800 |
commit | 6f398efaacd4cf733fcaedf29b648d17899071f0 (patch) | |
tree | f9bbd4102ce84c1714ba7dfd97c705ffce93f53e /src/common/platform | |
parent | ced1a63686e6c64cb574d74a34d1bbd07d0a668e (diff) | |
download | cru-6f398efaacd4cf733fcaedf29b648d17899071f0.tar.gz cru-6f398efaacd4cf733fcaedf29b648d17899071f0.tar.bz2 cru-6f398efaacd4cf733fcaedf29b648d17899071f0.zip |
...
Diffstat (limited to 'src/common/platform')
-rw-r--r-- | src/common/platform/win/DebugLogTarget.cpp | 10 |
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 |