File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub(crate) fn generate_sys_interface_file(
31
31
#[ path = "../compat/compat_4_0.rs" ]
32
32
mod compat_4_0;
33
33
34
- pub use compat_4_0:: InitCompat ;
34
+ pub use compat_4_0:: * ;
35
35
}
36
36
} else {
37
37
generate_proc_address_funcs ( h_path)
Original file line number Diff line number Diff line change @@ -55,3 +55,22 @@ impl BindingCompat for *const sys::GDExtensionInterface {
55
55
unsafe { * * self }
56
56
}
57
57
}
58
+
59
+ // ----------------------------------------------------------------------------------------------------------------------------------------------
60
+ // Polyfill for types referenced in function pointer tables
61
+
62
+ pub ( crate ) type GDExtensionInterfaceVariantGetPtrBuiltinMethod = Option <
63
+ unsafe extern "C" fn (
64
+ p_type : crate :: GDExtensionVariantType ,
65
+ p_method : crate :: GDExtensionConstStringNamePtr ,
66
+ p_hash : crate :: GDExtensionInt ,
67
+ ) -> crate :: GDExtensionPtrBuiltInMethod ,
68
+ > ;
69
+
70
+ pub ( crate ) type GDExtensionInterfaceClassdbGetMethodBind = Option <
71
+ unsafe extern "C" fn (
72
+ p_classname : crate :: GDExtensionConstStringNamePtr ,
73
+ p_methodname : crate :: GDExtensionConstStringNamePtr ,
74
+ p_hash : crate :: GDExtensionInt ,
75
+ ) -> crate :: GDExtensionMethodBindPtr ,
76
+ > ;
You can’t perform that action at this time.
0 commit comments