mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-14 01:21:19 +00:00
dynamically import null funcs (all with the same signature)
This commit is contained in:
@ -75,3 +75,15 @@ macro_rules! __imports_internal {
|
||||
$ns
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
#[doc(hidden)]
|
||||
macro_rules! ecapseman {
|
||||
( $( $imp_name:expr => $import_item:expr, )* ) => {{
|
||||
let mut ns = $crate::import::Namespace::new();
|
||||
$(
|
||||
ns.insert($imp_name, $import_item);
|
||||
)*
|
||||
ns
|
||||
}};
|
||||
}
|
||||
|
Reference in New Issue
Block a user