summaryrefslogtreecommitdiff
path: root/core/object/script_language.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-06-28 01:08:24 +0200
committerGitHub <noreply@github.com>2022-06-28 01:08:24 +0200
commitb863c40356b4b95192d1a1e2718db7d7aced4235 (patch)
treef07da843fb5c9a1c034abf526030c7b21f2777f2 /core/object/script_language.cpp
parent8fd0b4d1f84867c6727e2e233ad08b1fed801eb7 (diff)
parent9ddebc0c22866d6b7a7ff3fa64b67cc86c8664da (diff)
Merge pull request #62468 from V-Sekai/core-const-expressions
Add a const call mode to Object, Variant and Script.
Diffstat (limited to 'core/object/script_language.cpp')
-rw-r--r--core/object/script_language.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp
index 66c9a80193..4623d0e525 100644
--- a/core/object/script_language.cpp
+++ b/core/object/script_language.cpp
@@ -295,6 +295,11 @@ void ScriptServer::save_global_classes() {
}
////////////////////
+
+Variant ScriptInstance::call_const(const StringName &p_method, const Variant **p_args, int p_argcount, Callable::CallError &r_error) {
+ return callp(p_method, p_args, p_argcount, r_error);
+}
+
void ScriptInstance::get_property_state(List<Pair<StringName, Variant>> &state) {
List<PropertyInfo> pinfo;
get_property_list(&pinfo);