JavaScript-1.5 Reference

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

Groups [ Macro ]
Documents [ LXR ID Search ]
Entries [ BOOLEAN_TO_JSVAL | JSVAL_TO_INT | JSVAL_TO_PRIVATE ]

This page was generated by APIDOC