diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-16 17:11:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 17:11:40 +0100 |
commit | c9d764e14a131cb0e797543a1f153cb5adc6fce4 (patch) | |
tree | 6dded32a421fdde02eea31f69b4e0cbfae58ef3c /core/extension/gdnative_interface.cpp | |
parent | 9d732aa0cfcfd638c28ac8eb8149d912a5a3a642 (diff) | |
parent | 8b547331bec150b682fda94da1568fbcbda689ba (diff) |
Merge pull request #59140 from reduz/physics-server-extension
Diffstat (limited to 'core/extension/gdnative_interface.cpp')
-rw-r--r-- | core/extension/gdnative_interface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/extension/gdnative_interface.cpp b/core/extension/gdnative_interface.cpp index d9ec42dc9d..d0461611ec 100644 --- a/core/extension/gdnative_interface.cpp +++ b/core/extension/gdnative_interface.cpp @@ -60,6 +60,10 @@ static void gdnative_print_script_error(const char *p_description, const char *p _err_print_error(p_function, p_file, p_line, p_description, false, ERR_HANDLER_SCRIPT); } +uint64_t gdnative_get_native_struct_size(const char *p_name) { + return ClassDB::get_native_struct_size(p_name); +} + // Variant functions static void gdnative_variant_new_copy(GDNativeVariantPtr r_dest, const GDNativeVariantPtr p_src) { @@ -902,6 +906,8 @@ void gdnative_setup_interface(GDNativeInterface *p_interface) { gdni.print_warning = gdnative_print_warning; gdni.print_script_error = gdnative_print_script_error; + gdni.get_native_struct_size = gdnative_get_native_struct_size; + /* GODOT VARIANT */ // variant general |