MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Log

Method Log

Source/Engine/Platform/Windows/WindowsPlatform.cpp:883–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881#if !BUILD_RELEASE
882
883void 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
900bool WindowsPlatform::IsDebuggerPresent()
901{

Callers

nothing calls this directly

Calls 3

FreeFunction · 0.50
LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected