zingen::visitor

Macro impl_visit_operator

Source
macro_rules! impl_visit_operator {
    ( @mvp $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident $($rest:tt)* ) => { ... };
    ( @$proposal:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident $($rest:tt)* ) => { ... };
    () => { ... };
}
Expand description

A macro to define unsupported WebAssembly operators.

This macro calls itself recursively;

  1. It no-ops when matching a supported operator.
  2. Defines the visitor function and panics when matching an unsupported operator.