mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-25 14:41:32 +00:00
Add function to get export from ns/name via ImportObject to C API
This commit is contained in:
@ -75,6 +75,7 @@ pub unsafe extern "C" fn wasmer_instantiate(
|
||||
|
||||
let namespace = namespaces.entry(module_name).or_insert_with(Namespace::new);
|
||||
|
||||
// TODO check that tag is actually in bounds here
|
||||
let export = match import.tag {
|
||||
wasmer_import_export_kind::WASM_MEMORY => {
|
||||
let mem = import.value.memory as *mut Memory;
|
||||
|
Reference in New Issue
Block a user