File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -101,13 +101,13 @@ type FFITestOutputStructHandle<'a> = HandleShared<'a, FFITestOutputStruct>;
101
101
#[ cfg( debug_assertions) ]
102
102
ffi ! {
103
103
fn ffi_test_simple_struct_with_function_pointer(
104
- input: Ref <FFITestInputStruct >,
104
+ // input: Ref<FFITestInputStruct>,
105
105
output: Out <FFITestOutputStructHandle >
106
106
) -> FFIResult {
107
- let input_arc = unsafe_block!( " " => input. as_arc( ) ) ;
108
- let result = FFITestOutputStruct { field: input_arc } ;
109
- result. field. call( ) ;
110
- unsafe_block!( "We know output is not null by wrapper macro. And we know `Out` is writable" => output. init( HandleShared :: alloc( result) ) ) ;
107
+ // let input_arc = unsafe_block!(" " => input.as_arc());
108
+ // let result = FFITestOutputStruct{ field: input_arc };
109
+ // result.field.call();
110
+ // unsafe_block!("We know output is not null by wrapper macro. And we know `Out` is writable" => output.init(HandleShared::alloc(result)));
111
111
FFIResult :: ok( )
112
112
}
113
113
You can’t perform that action at this time.
0 commit comments