MCPcopy Create free account
hub / github.com/JayXon/Leanify / PrintErrorMessage

Function PrintErrorMessage

fileio.cpp:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101{
102
103void PrintErrorMessage(const char *msg)
104{
105 char *error_msg = nullptr;
106 FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER, nullptr, GetLastError(), 0, reinterpret_cast<char *>(&error_msg), 0, nullptr);
107 cerr << msg << endl;
108 if (error_msg)
109 {
110 cerr << error_msg << endl;
111 LocalFree(error_msg);
112 }
113}
114
115} // namespace
116

Callers 2

FileMethod · 0.85
UnMapFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected