Extending Flash |
|
|
|
| C-Level Extensibility > The C-level API > JSBool JS_ValueToBoolean() | |||
JSBool JS_ValueToBoolean(JSContext *cx, jsval v, JSBool *bp);
Method; extracts a function argument from a jsval structure, converts it to a Boolean value (if possible), and passes the converted value back to the caller.
JSContext *cx, jsval v, JSBool *bp
cx argument is the opaque JSContext pointer that passes to the JavaScript function.v argument is the jsval structure from which the Boolean value is to be extracted.bp argument is a pointer to a JSBool Boolean value. This function stores the converted value in *bp.A Boolean value: JS_TRUE indicates success; JS_FALSE indicates failure.
|
|
|
|