You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// SAFETY: `self.0` is a valid `get_proc_address` pointer.
130
-
let get_godot_version = unsafe{get_proc_address(sys::c_str(b"get_godot_version\0"))};//.expect("get_godot_version unexpectedly null");
130
+
let get_godot_version = unsafe{get_proc_address(sys::c_str(sys::GET_GODOT_VERSION_SYS_STR))};//.expect("get_godot_version unexpectedly null");
131
131
132
-
// SAFETY: `sys::GDExtensionInterfaceGetGodotVersion` is an `Option` of an `unsafe extern "C"` function pointer.
132
+
// SAFETY: `GDExtensionInterfaceGetGodotVersion` is an `Option` of an `unsafe extern "C"` function pointer.
133
133
let get_godot_version =
134
-
crate::unsafe_cast_fn_ptr!(get_godot_version as sys::GDExtensionInterfaceGetGodotVersion);
134
+
crate::unsafe_cast_fn_ptr!(get_godot_version as sys::GetGodotSysVersion);
135
135
136
-
letmut version = std::mem::MaybeUninit::<sys::GDExtensionGodotVersion>::zeroed();
136
+
letmut version = std::mem::MaybeUninit::<sys::GodotSysVersion>::zeroed();
137
137
138
-
// SAFETY: `get_proc_address` with "get_godot_version" does return a valid `sys::GDExtensionInterfaceGetGodotVersion` pointer, and since we have a valid
138
+
// SAFETY: `get_proc_address` with "get_godot_version" does return a valid `GDExtensionInterfaceGetGodotVersion` pointer, and since we have a valid
139
139
// `get_proc_address` pointer then it must be callable.
0 commit comments