From 61c9925b40e7251868c798e4126f99b2559aad90 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 24 Dec 2025 15:23:47 +0100 Subject: [PATCH] feat: GET_SET_FNS in macros.h --- modules/authority/macros.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/authority/macros.h b/modules/authority/macros.h index 53be3185..b08f9c17 100644 --- a/modules/authority/macros.h +++ b/modules/authority/macros.h @@ -17,4 +17,12 @@ ADD_PROPERTY(PropertyInfo(m_type, #m_property), "set_" #m_property, \ "get_" #m_property) +#define GET_SET_FNS(m_type, m_property) \ + m_type get_##m_property() const { \ + return this->m_property; \ + } \ + void set_##m_property(m_type value) { \ + this->m_property = value; \ + } + #endif // !GODOT_EXTRA_MACROS_H