summaryrefslogtreecommitdiff
path: root/src/port/hooks/impl/EventSystem.h
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-12-28 15:14:46 -0600
committerKiritoDv <kiritodev01@gmail.com>2024-12-28 15:14:46 -0600
commit679057f36498fafc3bf28afec8bb7114293f08bb (patch)
treeae7fac6f9c267a8d511d66a6e5942bf737aa7e10 /src/port/hooks/impl/EventSystem.h
parent8b9b5137d22b0cb6b1cf5b425caf7c3521e1640c (diff)
Renamed from _ID to ID on autogenerated event macros
Diffstat (limited to 'src/port/hooks/impl/EventSystem.h')
-rw-r--r--src/port/hooks/impl/EventSystem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/port/hooks/impl/EventSystem.h b/src/port/hooks/impl/EventSystem.h
index 17413408..32a32a26 100644
--- a/src/port/hooks/impl/EventSystem.h
+++ b/src/port/hooks/impl/EventSystem.h
@@ -41,15 +41,15 @@ typedef struct {
__VA_ARGS__ \
} eventName; \
\
- static uint32_t eventName##_ID = INTERNAL_EVENT_ID(id, type);
+ static uint32_t eventName##ID = INTERNAL_EVENT_ID(id, type);
#define CALL_EVENT(eventType, ...) \
eventType eventType##_ = { {false}, __VA_ARGS__ }; \
- EventSystem_CallEvent(eventType##_ID, &eventType##_);
+ EventSystem_CallEvent(eventType##ID, &eventType##_);
#define CALL_CANCELLABLE_EVENT(eventType, ...) \
eventType eventType##_ = { {false}, __VA_ARGS__ }; \
- EventSystem_CallEvent(eventType##_ID, &eventType##_); \
+ EventSystem_CallEvent(eventType##ID, &eventType##_); \
if (!eventType##_.event.cancelled)
#ifdef __cplusplus