Function wasmer_c_api::wasm_c_api::engine::wasm_engine_delete
source · #[no_mangle]
pub unsafe extern "C" fn wasm_engine_delete(
_engine: Option<Box<wasm_engine_t>>,
)
Expand description
Deletes an engine.
§Example
int main() {
// Create a default engine.
wasm_engine_t* engine = wasm_engine_new();
// Check we have an engine!
assert(engine);
// Free everything.
wasm_engine_delete(engine);
return 0;
}
cbindgen:ignore