JavaScript-1.5 Reference

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

Groups [ Macro ]
Documents [ LXR ID Search ]
Entries [ INT_TO_JSVAL | JSVAL_TO_BOOLEAN | JSVAL_TO_PRIVATE ]

This page was generated by APIDOC