macro_rules! declare_builtin_function {
($(#[$attr:meta])* $name:ident $(<$($generic_ident:tt : $generic_type:tt),+>)?, fn rust(
$vm:ident : &mut $ContextObject:ty,
$arg_a:ident : u64,
$arg_b:ident : u64,
$arg_c:ident : u64,
$arg_d:ident : u64,
$arg_e:ident : u64,
$memory_mapping:ident : &mut $MemoryMapping:ty,
) -> $Result:ty { $($rust:tt)* }) => { ... };
}
Expand description
Generates an adapter for a BuiltinFunction between the Rust and the VM interface