feat(c-api) Implement wasm_extern_copy.

This patch also moves `wasm_extern_delete` into the correct Rust module.
This commit is contained in:
Ivan Enderlin
2021-01-26 10:57:42 +01:00
parent 79b5d5c032
commit 18761cad7d
2 changed files with 78 additions and 6 deletions

View File

@@ -524,12 +524,6 @@ pub unsafe extern "C" fn wasi_get_start_function(
}))
}
/// Delete a `wasm_extern_t` allocated by the API.
///
/// cbindgen:ignore
#[no_mangle]
pub unsafe extern "C" fn wasm_extern_delete(_item: Option<Box<wasm_extern_t>>) {}
#[cfg(test)]
mod tests {
use inline_c::assert_c;