1
0
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:
Jan Haller
2022-03-27 21:31:00 +02:00
parent a5eed70fa2
commit f88bdac403
2 changed files with 4 additions and 2 deletions

View File

@@ -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()) + "]";
}