summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/classes
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-05-16 17:26:31 +0200
committerGitHub <noreply@github.com>2023-05-16 17:26:31 +0200
commit1c18413de00f1a6265b2b6c30175b2f6a434b574 (patch)
treef0fe493a7fe33a07046f94fcb9ac69f1a4a2f186 /include/godot_cpp/classes
parent813827c26ae079a9c29302a0a4d4c53dc4d89c19 (diff)
parenta5c6ca592023fea7317c0c3fb54639036c66dd76 (diff)
downloadredot-cpp-1c18413de00f1a6265b2b6c30175b2f6a434b574.tar.gz
Merge pull request #1095 from dsnopek/gdextension-interface
Update to load function pointers for GDExtension interface
Diffstat (limited to 'include/godot_cpp/classes')
-rw-r--r--include/godot_cpp/classes/ref.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/godot_cpp/classes/ref.hpp b/include/godot_cpp/classes/ref.hpp
index af7711c..301f847 100644
--- a/include/godot_cpp/classes/ref.hpp
+++ b/include/godot_cpp/classes/ref.hpp
@@ -242,7 +242,7 @@ struct PtrToArg<Ref<T>> {
_FORCE_INLINE_ static Ref<T> convert(const void *p_ptr) {
// Important: p_ptr is T*, not Ref<T>*, since Object* is what engine gives to ptrcall.
ERR_FAIL_NULL_V(p_ptr, Ref<T>());
- return Ref<T>(reinterpret_cast<T *>(godot::internal::gde_interface->object_get_instance_binding(
+ return Ref<T>(reinterpret_cast<T *>(godot::internal::gdextension_interface_object_get_instance_binding(
reinterpret_cast<GDExtensionObjectPtr>(const_cast<void *>(p_ptr)),
godot::internal::token, &T::___binding_callbacks)));
}
@@ -256,7 +256,7 @@ struct PtrToArg<Ref<T>> {
// This code assumes that p_ptr points to an unset Ref<T> variable on the Godot side
// so we only set it if we have an object to set.
if (p_val.is_valid()) {
- godot::internal::gde_interface->ref_set_object(ref, p_val->_owner);
+ godot::internal::gdextension_interface_ref_set_object(ref, p_val->_owner);
}
}
};
@@ -267,7 +267,7 @@ struct PtrToArg<const Ref<T> &> {
_FORCE_INLINE_ static Ref<T> convert(const void *p_ptr) {
ERR_FAIL_NULL_V(p_ptr, Ref<T>());
- return Ref<T>(reinterpret_cast<T *>(godot::internal::gde_interface->object_get_instance_binding(
+ return Ref<T>(reinterpret_cast<T *>(godot::internal::gdextension_interface_object_get_instance_binding(
reinterpret_cast<GDExtensionObjectPtr>(const_cast<void *>(p_ptr)),
godot::internal::token, &T::___binding_callbacks)));
}