CommonFuncs: LastStrerrorString added

This commit is contained in:
Sepalani
2017-08-17 20:12:44 +01:00
parent 4e40fad248
commit 4e5fe6366a
6 changed files with 69 additions and 78 deletions

View File

@ -86,7 +86,12 @@ __declspec(dllimport) void __stdcall DebugBreak(void);
}
#endif // WIN32 ndef
// Generic function to get last error message.
// Call directly after the command or use the error num.
// Wrapper function to get last strerror(errno) string.
// This function might change the error code.
std::string GetLastErrorMsg();
std::string LastStrerrorString();
#ifdef _WIN32
// Wrapper function to get GetLastError() string.
// This function might change the error code.
std::string GetLastErrorString();
#endif