| 215 | const char* xrDebug::DXerror2string(const HRESULT code) const { return _com_error{code}.ErrorMessage(); } |
| 216 | |
| 217 | const 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 | |
| 224 | void 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 |
no outgoing calls
no test coverage detected