You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
GDExtension: change to_string signature to accept GDNativeStringPtr instead of returning const char*
This commit is contained in:
@@ -865,7 +865,9 @@ String Object::to_string() {
|
||||
}
|
||||
}
|
||||
if (_extension && _extension->to_string) {
|
||||
return _extension->to_string(_extension_instance);
|
||||
String ret;
|
||||
_extension->to_string(_extension_instance, &ret);
|
||||
return ret;
|
||||
}
|
||||
return "[" + get_class() + ":" + itos(get_instance_id()) + "]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user