wasmi_c_api_impl 2.0.0-beta.2

C bindings for the Wasmi WebAssembly interpreter
Documentation
use alloc::boxed::Box;

/// A foreign defined non-Wasm object.
#[derive(Clone)]
#[repr(C)]
pub struct wasm_foreign_t {}

wasmi_c_api_macros::declare_ref!(wasm_foreign_t);

/// Creates a new foreign non-Wasm object for the [`wasm_store_t`](crate::wasm_store_t).
///
/// # Note
///
/// This API is unsupported and will panic upon use.
#[cfg_attr(not(feature = "prefix-symbols"), unsafe(no_mangle))]
#[cfg_attr(feature = "prefix-symbols", wasmi_c_api_macros::prefix_symbol)]
pub extern "C" fn wasm_foreign_new(_store: &crate::wasm_store_t) -> Box<wasm_foreign_t> {
    unimplemented!("wasm_foreign_new")
}