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

@ -2,33 +2,27 @@
#define STORM_EVENT_HPP
#include <cstdint>
#include "Core.hpp"
#ifndef STORMAPI
#if defined(_MSC_VER)
#define STORMAPI __stdcall
#else
#define STORMAPI
#endif
#endif
typedef void (STORMAPI* SEVTHANDLER)(void*);
int32_t SEvtBreakHandlerChain(void* data);
int32_t STORMAPI SEvtBreakHandlerChain(void* data);
int32_t SEvtDestroy();
int32_t STORMAPI SEvtDestroy();
int32_t SEvtDispatch(uint32_t type, uint32_t subtype, uint32_t id, void* data);
int32_t STORMAPI SEvtDispatch(uint32_t type, uint32_t subtype, uint32_t id, void* data);
int32_t SEvtPopState(uint32_t type, uint32_t subtype);
int32_t STORMAPI SEvtPopState(uint32_t type, uint32_t subtype);
int32_t SEvtPushState(uint32_t type, uint32_t subtype);
int32_t STORMAPI SEvtPushState(uint32_t type, uint32_t subtype);
int32_t SEvtRegisterHandler(uint32_t type, uint32_t subtype, uint32_t id, uint32_t flags, SEVTHANDLER handler);
int32_t STORMAPI SEvtRegisterHandler(uint32_t type, uint32_t subtype, uint32_t id, uint32_t flags, SEVTHANDLER handler);
int32_t SEvtUnregisterHandler(uint32_t type, uint32_t subtype, uint32_t id, SEVTHANDLER handler);
int32_t STORMAPI SEvtUnregisterHandler(uint32_t type, uint32_t subtype, uint32_t id, SEVTHANDLER handler);
int32_t SEvtUnregisterType(uint32_t type, uint32_t subtype);
int32_t STORMAPI SEvtUnregisterType(uint32_t type, uint32_t subtype);
#endif