feat(error): make errors visible on Windows

This commit is contained in:
phaneron 2023-08-17 02:02:23 -04:00
parent 04bdf81025
commit e606bdbf59
2 changed files with 101 additions and 0 deletions

View file

@ -9,6 +9,8 @@
static uint32_t s_lasterror = ERROR_SUCCESS;
#if !defined(WHOA_SYSTEM_WIN)
[[noreturn]] void SErrDisplayAppFatal(const char* format, ...) {
va_list args;
va_start(args, format);
@ -59,6 +61,8 @@ int32_t SErrDisplayError(uint32_t errorcode, const char* filename, int32_t linen
}
}
#endif
int32_t SErrDisplayErrorFmt(uint32_t errorcode, const char* filename, int32_t linenumber, int32_t recoverable, uint32_t exitcode, const char* format, ...) {
char buffer[2048];