gluon_vm
macro_rules! primitive { ($arg_count:tt, async fn $name:expr) => { ... }; ($arg_count:tt, $name:expr) => { ... }; ($arg_count:tt, $name:expr, async fn $func:expr) => { ... }; ($arg_count:tt, $name:expr, $func:expr) => { ... }; }
Creates a GluonFunction from a function implementing VMFunction
GluonFunction
VMFunction
#[macro_use] extern crate gluon_vm; fn test(_x: i32, _y: String) -> f64 { panic!() } fn main() { primitive!(2, test); }