(
store: &mut wasm_store_t,
ty: &wasm_functype_t,
callback: wasm_func_callback_t,
)
| 94 | |
| 95 | #[unsafe(no_mangle)] |
| 96 | pub unsafe extern "C" fn wasm_func_new( |
| 97 | store: &mut wasm_store_t, |
| 98 | ty: &wasm_functype_t, |
| 99 | callback: wasm_func_callback_t, |
| 100 | ) -> Box<wasm_func_t> { |
| 101 | create_function(store, ty, move |params, results| callback(params, results)) |
| 102 | } |
| 103 | |
| 104 | #[unsafe(no_mangle)] |
| 105 | pub unsafe extern "C" fn wasm_func_new_with_env( |
no test coverage detected