we now parse witx paths and the ctx type name in the macro invocation

This commit is contained in:
Pat Hickey
2020-01-30 16:38:16 -08:00
parent 0ba8e73184
commit 29c3ef9d09
5 changed files with 96 additions and 55 deletions

View File

@@ -1,6 +1,9 @@
pub mod test {
// FIXME: parameterize macro on what ctx type is used here
generate::from_witx!(["test.witx"]);
generate::from_witx!({
witx: ["test.witx"],
ctx: WasiCtx,
});
pub struct WasiCtx {
guest_errors: Vec<::memory::GuestError>,