script_bindings::utils

Function generic_setter

Source
pub(crate) unsafe extern "C" fn generic_setter(
    cx: *mut JSContext,
    argc: c_uint,
    vp: *mut JSVal,
) -> bool
Expand description

Generic setter of IDL interface.

§Safety

cx must point to a valid, non-null JSContext. vp must point to a VALID, non-null JSVal.