feat(error): add exception-to-string translation for windows

This commit is contained in:
Tristan 'Natrist' Cormier 2023-03-20 22:51:46 -04:00 committed by GitHub
parent bebe40f781
commit d7fc37cef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 104 additions and 2 deletions

View file

@ -77,9 +77,8 @@ void SErrPrepareAppFatal(const char* filename, int32_t linenumber) {
void SErrSetLastError(uint32_t errorcode) {
s_lasterror = errorcode;
#if defined(WHOA_SYSTEM_WIN)
SetLastError(errorcode);
SetLastError(errorcode);
#endif
}