chore(build): mark all API functions with calling convention (#69)

This commit is contained in:
Adam Heinermann 2025-10-05 20:27:01 -07:00 committed by GitHub
parent dc9f9c1958
commit 4fa6599807
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 220 additions and 207 deletions

View file

@ -3,7 +3,7 @@
#include "storm/error/Macros.hpp"
#include "storm/error/Types.hpp"
#include <cstdint>
#include "Core.hpp"
#if defined(WHOA_SYSTEM_WIN)
#include <WinError.h>
@ -16,18 +16,18 @@
#define ERROR_INVALID_PARAMETER 0x57
#endif
[[noreturn]] void SErrDisplayAppFatal(const char* format, ...);
[[noreturn]] void STORMCDECL SErrDisplayAppFatal(const char* format, ...);
int32_t SErrDisplayError(uint32_t errorcode, const char* filename, int32_t linenumber, const char* description, int32_t recoverable, uint32_t exitcode, uint32_t a7);
int32_t STORMAPI SErrDisplayError(uint32_t errorcode, const char* filename, int32_t linenumber, const char* description, int32_t recoverable, uint32_t exitcode, uint32_t a7);
int32_t SErrDisplayErrorFmt(uint32_t errorcode, const char* filename, int32_t linenumber, int32_t recoverable, uint32_t exitcode, const char* format, ...);
int32_t STORMCDECL SErrDisplayErrorFmt(uint32_t errorcode, const char* filename, int32_t linenumber, int32_t recoverable, uint32_t exitcode, const char* format, ...);
void SErrPrepareAppFatal(const char* filename, int32_t linenumber);
void STORMAPI SErrPrepareAppFatal(const char* filename, int32_t linenumber);
void SErrSetLastError(uint32_t errorcode);
void STORMAPI SErrSetLastError(uint32_t errorcode);
uint32_t SErrGetLastError();
uint32_t STORMAPI SErrGetLastError();
void SErrSuppressErrors(uint32_t suppress);
void STORMAPI SErrSuppressErrors(uint32_t suppress);
#endif