#[unsafe(no_mangle)]pub unsafe extern "C" fn JS_NewCFunction2(
ctx: *mut JsContext,
func: RawFunction,
name: *const c_char,
length: c_int,
cproto: c_int,
magic: c_int,
) -> JsValueExpand description
JS_NewCFunction2: wrap a C function pointer as a JavaScript function.
ยงSafety
ctx must be a live context, func must be a function pointer of the signature
cproto names, and name a NUL-terminated string.