feat: GET_SET_FNS in macros.h

This commit is contained in:
Sara Gerretsen 2025-12-24 15:23:47 +01:00
parent 9508f2078d
commit 61c9925b40

View file

@ -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