(
linker: &mut wasmtime_linker_t,
store: WasmtimeStoreContextMut<'_>,
name: *const u8,
name_len: usize,
instance: &Instance,
)
| 122 | |
| 123 | #[unsafe(no_mangle)] |
| 124 | pub unsafe extern "C" fn wasmtime_linker_define_instance( |
| 125 | linker: &mut wasmtime_linker_t, |
| 126 | store: WasmtimeStoreContextMut<'_>, |
| 127 | name: *const u8, |
| 128 | name_len: usize, |
| 129 | instance: &Instance, |
| 130 | ) -> Option<Box<wasmtime_error_t>> { |
| 131 | let linker = &mut linker.linker; |
| 132 | let name = to_str!(name, name_len); |
| 133 | handle_result(linker.instance(store, name, *instance), |_linker| ()) |
| 134 | } |
| 135 | |
| 136 | #[unsafe(no_mangle)] |
| 137 | pub extern "C" fn wasmtime_linker_instantiate( |
no test coverage detected