Commit ff41be9e authored by qinsoon's avatar qinsoon

fix

parent 863f1269
Pipeline #384 failed with stage
in 18 minutes and 52 seconds
......@@ -50,6 +50,12 @@ macro_rules! typedef {
$vm.set_name($name.as_entity(), Mu(stringify!($name)));
};
// array
(($vm: expr) $name: ident = mu_array($ty: ident, $len: expr) => {
let $name = $vm.declare_type($vm.next_id(), MuType_::array($ty.clone(), $len));
$vm.set_name($name.as_entity(), Mu(stringify!($name)));
});
// funcref
(($vm: expr) $name: ident = mu_funcref($sig: ident)) => {
let $name = $vm.declare_type($vm.next_id(), MuType_::funcref($sig.clone()));
......
mod test_threadlocal;
mod test_entry_offset;
mod test_struct_layout;
\ No newline at end of file
mod test_mem_layout;
\ No newline at end of file
......@@ -8,7 +8,6 @@ use utils::Address;
use mu::runtime::mm;
use mu::runtime::thread;
use mu::runtime::thread::MuThread;
use mu::vm::VM;
use std::sync::Arc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment