Skip to content

Commit 1951d72

Browse files
committed
remove input argument from test ffi
1 parent 8e3ab05 commit 1951d72

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bindings/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ type FFITestOutputStructHandle<'a> = HandleShared<'a, FFITestOutputStruct>;
101101
#[cfg(debug_assertions)]
102102
ffi! {
103103
fn ffi_test_simple_struct_with_function_pointer(
104-
input: Ref<FFITestInputStruct>,
104+
// input: Ref<FFITestInputStruct>,
105105
output: Out<FFITestOutputStructHandle>
106106
) -> 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)));
111111
FFIResult::ok()
112112
}
113113

0 commit comments

Comments
 (0)