Add Tables to C API; clean up

This commit is contained in:
Mark McCaskey
2020-05-29 17:14:17 -07:00
parent 4d3b95d674
commit e45a5b5af9
5 changed files with 160 additions and 64 deletions

View File

@@ -120,6 +120,11 @@ impl Table {
exported: wasmer_export,
}
}
/// Returns whether or not these two tables refer to the same data.
pub fn same(&self, other: &Self) -> bool {
self.exported.same(&other.exported)
}
}
impl<'a> Exportable<'a> for Table {