Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void console::write(const u32string& str)
- {
- lock_guard<mutex> guard(lock);
- #ifdef _WIN32
- wstring wstr = encoding::u32_to_u16(str) + L"\n";
- WriteConsoleW(ouputHandle, wstr.c_str(), wstr.size(), NULL, NULL);
- OutputDebugStringW(wstr.c_str());
- #else
- cout << encoding::u32_to_u8(str) << endl;
- #endif
- log(str, log_type::info);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement