macro_rules! native_fn { ($call:expr, $name:expr, $nargs:expr, $flags:expr) => { ... }; }
Expand description
Defines a macro native_fn!
to create a JavaScript function from a Rust function pointer.
§Example
let js_function: Rc<Function> = native_fn!(my_rust_function, c"myFunction", 2, 0);