Get Wasm C API Hello World working

This commit is contained in:
Mark McCaskey
2020-05-29 13:39:24 -07:00
parent 027e26c1b4
commit 342b2cf927
6 changed files with 337 additions and 296 deletions

View File

@@ -108,6 +108,11 @@ impl Global {
exported: wasmer_export,
}
}
/// Returns whether or not these two globals refer to the same data.
pub fn same(&self, other: &Global) -> bool {
self.exported.same(&other.exported)
}
}
impl fmt::Debug for Global {