Merge branch 'main' of github.com:cfallin/waffle

This commit is contained in:
Chris Fallin 2023-02-24 11:36:42 -08:00
commit 5c48a0a3ea

View file

@ -70,6 +70,11 @@ pub fn call_wasi(
write_u32(mem, p_time, 0);
Some(smallvec![ConstVal::I32(0)])
}
"clock_res_get" => {
let p_res = args[1].as_u32().unwrap();
write_u32(mem, p_res, 1);
Some(smallvec![ConstVal::I32(0)])
}
_ => None,
}
}