wasmtime-c-api: Add wasmtime_store_gc for GCing externrefs

This commit is contained in:
Nick Fitzgerald
2020-07-21 09:33:34 -07:00
parent 96ef2f1a1b
commit 2efb46afd5
2 changed files with 16 additions and 0 deletions

View File

@@ -17,6 +17,11 @@ pub extern "C" fn wasm_store_new(engine: &wasm_engine_t) -> Box<wasm_store_t> {
})
}
#[no_mangle]
pub extern "C" fn wasmtime_store_gc(store: &wasm_store_t) {
store.store.gc();
}
#[repr(C)]
pub struct wasmtime_interrupt_handle_t {
handle: InterruptHandle,