Skip to main content

JS_ToInt32

Function JS_ToInt32 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_ToInt32( ctx: *mut JsContext, pres: *mut i32, val: JsValue, ) -> c_int
Expand description

JS_ToInt32: ToInt32 (wrapping), or -1 with a pending exception.

ยงSafety

pres must be null or writable, val a live JSValue.