fix(error): correct SErrSuppressErrors prototype

This commit is contained in:
Adam Heinermann 2026-01-03 15:12:13 -08:00 committed by fallenoak
parent 65a6fc72b4
commit 9c2fc0adf4
3 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@
#endif
static uint32_t s_lasterror = ERROR_SUCCESS;
static uint32_t s_suppress;
static int32_t s_suppress;
[[noreturn]] void STORMCDECL SErrDisplayAppFatal(const char* format, ...) {
va_list args;
@ -87,6 +87,6 @@ uint32_t STORMAPI SErrGetLastError() {
return s_lasterror;
}
void STORMAPI SErrSuppressErrors(uint32_t suppress) {
void STORMAPI SErrSuppressErrors(int32_t suppress) {
s_suppress = suppress;
}

View file

@ -28,6 +28,6 @@ void STORMAPI SErrSetLastError(uint32_t errorcode);
uint32_t STORMAPI SErrGetLastError();
void STORMAPI SErrSuppressErrors(uint32_t suppress);
void STORMAPI SErrSuppressErrors(int32_t suppress);
#endif

View file

@ -41,7 +41,7 @@ int32_t STORMCDECL SErrDisplayErrorFmt(uint32_t, const char*, int32_t, int32_t,
void STORMAPI SErrPrepareAppFatal(const char*, int32_t) {}
void STORMAPI SErrSetLastError(uint32_t) {}
uint32_t STORMAPI SErrGetLastError() { return 0; }
void STORMAPI SErrSuppressErrors(uint32_t) {}
void STORMAPI SErrSuppressErrors(int32_t) {}
#include <storm/Event.hpp>