AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Entry:     JSVAL_TO_INT (Macro)
Summary:     Converts a JS integer value to an integer.
Syntax:
JSVAL_TO_INT(v)

Description:
JSVAL_TO_INT converts a specified JS integer value, v, to a C integer value by performing a bitwise right shift operation. JSVAL_TO_INT assumes that it was passed a JS value of type JSVAL_INT, and returns that JS value's corresponding C integer value. Note that because of the bit-shifting operation, that a C comparison of JSVAL_TO_INT(v) to v always results in nonequality.


See also:
INT_TO_JSVAL
JSVAL_TO_BOOLEAN
JSVAL_TO_PRIVATE

[sh-index] Back to list of manuals