@@ -114,8 +114,6 @@ macro_rules! impl_varcall_signature_for_tuple {
114
114
$R: ident
115
115
$( , ( $pn: ident, $n: tt) : $Pn: ident) * // $n cannot be literal if substituted as tuple index .0
116
116
) => {
117
- // R: FromVariantIndirect, Pn: ToVariant -> when calling engine APIs
118
- // R: ToVariant, Pn:
119
117
#[ allow( unused_variables) ]
120
118
impl <$R, $( $Pn, ) * > VarcallSignatureTuple for ( $R, $( $Pn, ) * )
121
119
where
@@ -181,7 +179,7 @@ macro_rules! impl_varcall_signature_for_tuple {
181
179
182
180
// Note: varcalls are not safe from failing, if the happen through an object pointer -> validity check necessary.
183
181
if let Some ( instance_id) = maybe_instance_id {
184
- crate :: engine:: ensure_object_alive( instance_id, object_ptr, method_name) ;
182
+ crate :: engine:: ensure_object_alive( Some ( instance_id) , object_ptr, method_name) . unwrap ( ) ;
185
183
}
186
184
187
185
let class_fn = sys:: interface_fn!( object_method_bind_call) ;
@@ -292,7 +290,7 @@ macro_rules! impl_ptrcall_signature_for_tuple {
292
290
) -> Self :: Ret {
293
291
// $crate::out!("out_class_ptrcall: {method_name}");
294
292
if let Some ( instance_id) = maybe_instance_id {
295
- crate :: engine:: ensure_object_alive( instance_id, object_ptr, method_name) ;
293
+ crate :: engine:: ensure_object_alive( Some ( instance_id) , object_ptr, method_name) . unwrap ( ) ;
296
294
}
297
295
298
296
let class_fn = sys:: interface_fn!( object_method_bind_ptrcall) ;
@@ -402,7 +400,7 @@ unsafe fn varcall_return<R: ToGodot>(
402
400
/// # Safety
403
401
/// See [`varcall_return`].
404
402
#[ cfg( since_api = "4.2" ) ] // unused before
405
- pub ( crate ) unsafe fn varcall_return_checked < R : ToVariant > (
403
+ pub ( crate ) unsafe fn varcall_return_checked < R : ToGodot > (
406
404
ret_val : Result < R , ( ) > , // TODO Err should be custom CallError enum
407
405
ret : sys:: GDExtensionVariantPtr ,
408
406
err : * mut sys:: GDExtensionCallError ,
0 commit comments