From dd29a496d6cfa988c25575ba743863235fa8b6f5 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Sat, 28 Dec 2024 15:14:46 -0600 Subject: [PATCH] Renamed from _ID to ID on autogenerated event macros --- src/port/hooks/impl/EventSystem.h | 6 +++--- 1 file 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