Backport miscellaneous changes that can't be cherry-picked

pull/1460/head
David Snopek 2024-05-08 16:49:18 -05:00
parent 98c143a483
commit 9afbdb9cf6
2 changed files with 2 additions and 1 deletions

View File

@ -274,7 +274,6 @@ public:
if (p_instance) { \ if (p_instance) { \
m_class *cls = reinterpret_cast<m_class *>(p_instance); \ m_class *cls = reinterpret_cast<m_class *>(p_instance); \
cls->plist_owned.clear(); \ cls->plist_owned.clear(); \
/* TODO `GDExtensionClassFreePropertyList` is ill-defined, we need a non-const pointer to free this. */ \
::godot::internal::free_c_property_list(const_cast<GDExtensionPropertyInfo *>(p_list)); \ ::godot::internal::free_c_property_list(const_cast<GDExtensionPropertyInfo *>(p_list)); \
} \ } \
} \ } \

View File

@ -412,6 +412,7 @@ public:
method = p_method; method = p_method;
generate_argument_types(sizeof...(P)); generate_argument_types(sizeof...(P));
set_argument_count(sizeof...(P)); set_argument_count(sizeof...(P));
set_const(true);
} }
}; };
@ -578,6 +579,7 @@ public:
generate_argument_types(sizeof...(P)); generate_argument_types(sizeof...(P));
set_argument_count(sizeof...(P)); set_argument_count(sizeof...(P));
set_return(true); set_return(true);
set_const(true);
} }
}; };