MCPcopy Create free account
hub / github.com/ddnet/ddnet / ConvertWindowsHandle

Function ConvertWindowsHandle

src/base/log.cpp:375–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373};
374
375static IOHANDLE ConvertWindowsHandle(HANDLE pHandle, int OpenFlags)
376{
377 int FileDescriptor = _open_osfhandle(reinterpret_cast<intptr_t>(pHandle), OpenFlags);
378 dbg_assert(FileDescriptor != -1, "_open_osfhandle failure");
379 IOHANDLE FileStream = _wfdopen(FileDescriptor, L"w");
380 dbg_assert(FileStream != nullptr, "_wfdopen failure");
381 return FileStream;
382}
383#endif
384
385std::unique_ptr<ILogger> log_logger_stdout()

Callers 1

log_logger_stdoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected