mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
feat(error): make errors visible on Windows
This commit is contained in:
parent
04bdf81025
commit
e606bdbf59
2 changed files with 101 additions and 0 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue