mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-04-27 11:53:52 +00:00
fix(error): correct SErrSuppressErrors prototype
This commit is contained in:
parent
65a6fc72b4
commit
9c2fc0adf4
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue