mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
feat(error): implement SErrSetLastError and SErrGetLastError functions
This commit is contained in:
parent
095b042583
commit
630e6dbb1f
2 changed files with 19 additions and 2 deletions
|
|
@ -4,10 +4,11 @@
|
|||
#include <cstdint>
|
||||
|
||||
#if defined(WHOA_SYSTEM_WIN)
|
||||
#include <winerror.h>
|
||||
#include <WinError.h>
|
||||
#endif
|
||||
|
||||
#if defined(WHOA_SYSTEM_MAC) || defined(WHOA_SYSTEM_LINUX)
|
||||
#define ERROR_SUCCESS 0x0
|
||||
#define ERROR_INVALID_PARAMETER 0x57
|
||||
#endif
|
||||
|
||||
|
|
@ -40,4 +41,6 @@ void SErrPrepareAppFatal(const char* filename, int32_t linenumber);
|
|||
|
||||
void SErrSetLastError(uint32_t errorcode);
|
||||
|
||||
uint32_t SErrGetLastError();
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue