You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
C#: Skip methods with pointer parameters
This commit is contained in:
@@ -2795,6 +2795,18 @@ bool BindingsGenerator::_arg_default_value_is_assignable_to_type(const Variant &
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool method_has_ptr_parameter(MethodInfo p_method_info) {
|
||||||
|
if (p_method_info.return_val.type == Variant::INT && p_method_info.return_val.hint == PROPERTY_HINT_INT_IS_POINTER) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
for (PropertyInfo arg : p_method_info.arguments) {
|
||||||
|
if (arg.type == Variant::INT && arg.hint == PROPERTY_HINT_INT_IS_POINTER) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool BindingsGenerator::_populate_object_type_interfaces() {
|
bool BindingsGenerator::_populate_object_type_interfaces() {
|
||||||
obj_types.clear();
|
obj_types.clear();
|
||||||
|
|
||||||
@@ -2938,6 +2950,11 @@ bool BindingsGenerator::_populate_object_type_interfaces() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (method_has_ptr_parameter(method_info)) {
|
||||||
|
// Pointers are not supported.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
MethodInterface imethod;
|
MethodInterface imethod;
|
||||||
imethod.name = method_info.name;
|
imethod.name = method_info.name;
|
||||||
imethod.cname = cname;
|
imethod.cname = cname;
|
||||||
|
|||||||
Reference in New Issue
Block a user