Entry: JSVAL_TO_BOOLEAN (Macro)
Summary: Converts a JS value to a C true or false value.
Syntax:
JSVAL_TO_BOOLEAN(v)
Description:
JSVAL_TO_BOOLEAN converts a specified JS value, v, to a C true or false value by performing a bitwise right shift operation. JSVAL_TO_BOOLEAN assumes that it was passed a JS value of type JSVAL_BOOLEAN, and returns that JS value's corresponding C integer value.
See also:
|
|
|