(
engine: &crate::wasm_engine_t,
ty: &wasm_memorytype_t,
ret: &mut *mut wasmtime_sharedmemory_t,
)
| 9 | #[unsafe(no_mangle)] |
| 10 | #[cfg(feature = "threads")] |
| 11 | pub extern "C" fn wasmtime_sharedmemory_new( |
| 12 | engine: &crate::wasm_engine_t, |
| 13 | ty: &wasm_memorytype_t, |
| 14 | ret: &mut *mut wasmtime_sharedmemory_t, |
| 15 | ) -> Option<Box<wasmtime_error_t>> { |
| 16 | handle_result( |
| 17 | SharedMemory::new(&engine.engine, ty.ty().ty.clone()), |
| 18 | |mem| *ret = Box::<wasmtime_sharedmemory_t>::into_raw(Box::new(mem)), |
| 19 | ) |
| 20 | } |
| 21 | |
| 22 | #[unsafe(no_mangle)] |
| 23 | pub extern "C" fn wasmtime_sharedmemory_clone( |
nothing calls this directly
no test coverage detected