feat: GET_SET_FNS in macros.h
This commit is contained in:
parent
9508f2078d
commit
61c9925b40
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue