Macro ckb_vm_definitions::for_each_inst_match
source ยท macro_rules! for_each_inst_match { ($callback:ident, $val:expr, $others:expr) => { ... }; }
Expand description
Generates a match expression containing all instructions, it takes 3 arguments:
-
A callback macro that takes the exact same arguments as callback macro in +for_each_inst+
-
A value expression containing the actual value to match against.
-
An expression used as wildcard matches when the passed value does not match any opcode
-
Free variables are attached to the variants ending with match1, match2, etc.