Macro script::native_raw_obj_fn

source ·
macro_rules! native_raw_obj_fn {
    ($cx:expr, $call:expr, $name:expr, $nargs:expr, $flags:expr) => { ... };
}
Expand description

Defines a macro native_raw_obj_fn! to create a raw JavaScript function object.

§Example

let raw_function_obj: *mut JSObject = native_raw_obj_fn!(cx, my_rust_function, c"myFunction", 2, 0);