MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / error2string

Method error2string

ogsr_engine/xrCore/xrDebugNew.cpp:217–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215const char* xrDebug::DXerror2string(const HRESULT code) const { return _com_error{code}.ErrorMessage(); }
216
217const char* xrDebug::error2string(const DWORD code) const
218{
219 static string1024 desc_storage;
220 FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, code, 0, desc_storage, sizeof(desc_storage) - 1, 0);
221 return desc_storage;
222}
223
224void xrDebug::error(const HRESULT hr, const char* expr, const char* file, int line, const char* function) { backend(DXerror2string(hr), expr, 0, 0, file, line, function); }
225

Callers 5

openMethod · 0.80
CVirtualFileReaderMethod · 0.80
save_mini_dumpFunction · 0.80
BuildStackTraceFunction · 0.80
open_archive_chunkFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected