| 881 | #if !BUILD_RELEASE |
| 882 | |
| 883 | void WindowsPlatform::Log(const StringView& msg, int32 logType) |
| 884 | { |
| 885 | Char buffer[512]; |
| 886 | Char* str; |
| 887 | if (msg.Length() + 3 < ARRAY_COUNT(buffer)) |
| 888 | str = buffer; |
| 889 | else |
| 890 | str = (Char*)Allocate((msg.Length() + 3) * sizeof(Char), 16); |
| 891 | MemoryCopy(str, msg.Get(), msg.Length() * sizeof(Char)); |
| 892 | str[msg.Length() + 0] = '\r'; |
| 893 | str[msg.Length() + 1] = '\n'; |
| 894 | str[msg.Length() + 2] = 0; |
| 895 | OutputDebugStringW(str); |
| 896 | if (str != buffer) |
| 897 | Free(str); |
| 898 | } |
| 899 | |
| 900 | bool WindowsPlatform::IsDebuggerPresent() |
| 901 | { |