This commit is contained in:
Lachlan Sneff
2019-04-09 16:07:09 -07:00
parent c212ba3619
commit 0745274892
3 changed files with 22 additions and 0 deletions

View File

@ -20,4 +20,11 @@ impl VarArgs {
unsafe impl WasmExternType for VarArgs {
const TYPE: Type = Type::I32;
fn to_bits(self) -> u64 {
self.pointer as u64
}
fn from_bits(n: u64) -> Self {
Self { pointer: n as u32 }
}
}