summaryrefslogtreecommitdiff
path: root/core/object/object.cpp
diff options
context:
space:
mode:
authorEmmanuel Leblond <emmanuel.leblond@gmail.com>2022-11-08 23:02:28 +0100
committerGitHub <noreply@github.com>2022-11-08 23:02:28 +0100
commit6d9546f16c505186196da677154de5f216b7eb9b (patch)
tree70210bd4134541fe4dc78fe315b13bb7405b0f20 /core/object/object.cpp
parent60e25835a5d19dee9382052549d7f7a6523a6b97 (diff)
parent1e8756c94bcc96a0ec1dd380a99183d062bde794 (diff)
Merge pull request #67750 from touilleMan/stringname-in-gdextension-api
Uses `StringName` in GDExtension and simplify argument/property declaration in class/method registration
Diffstat (limited to 'core/object/object.cpp')
-rw-r--r--core/object/object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp
index 540b9a8f19..d27e0d7621 100644
--- a/core/object/object.cpp
+++ b/core/object/object.cpp
@@ -808,7 +808,8 @@ String Object::to_string() {
}
if (_extension && _extension->to_string) {
String ret;
- _extension->to_string(_extension_instance, &ret);
+ GDNativeBool is_valid;
+ _extension->to_string(_extension_instance, &is_valid, &ret);
return ret;
}
return "<" + get_class() + "#" + itos(get_instance_id()) + ">";