MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla
Your Search Results

    BOOLEAN_TO_JSVAL

    Cast a C integer to a boolean JS::Value without any type checking or error handling.

    Syntax

    jsval
    BOOLEAN_TO_JSVAL(bool b);
    
    Name Type Description
    b bool C integer value to be converted to a boolean jsval.

    Description

    BOOLEAN_TO_JSVAL converts a bool argument, b, to a boolean jsval.

    If b is false, the result is JSVAL_FALSE.

    If b is true, the result is JSVAL_TRUE.

    See Also

    Document Tags and Contributors

    Contributors to this page: fscholz, Nickolay, Callek, arai, MMondor, Dria, Jorend
    Last updated by: arai,
    Hide Sidebar