MCPcopy Create free account
hub / github.com/defold/defold / WriteWideDebugLine

Function WriteWideDebugLine

engine/dlib/src/test/test_sys.cpp:99–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99static void WriteWideDebugLine(const wchar_t* prefix, const wchar_t* value)
100{
101 HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
102 if (handle == INVALID_HANDLE_VALUE || handle == NULL)
103 return;
104
105 DWORD ignored = 0;
106 WriteConsoleW(handle, prefix, (DWORD)wcslen(prefix), &ignored, NULL);
107 WriteConsoleW(handle, value, (DWORD)wcslen(value), &ignored, NULL);
108 WriteConsoleW(handle, L"'\n", 2, &ignored, NULL);
109}
110#endif
111
112// Unit test helpers

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected