JavaScript-1.5 Reference

JS_SetBranchCallback Function

Summary

Specifies a callback function that is automatically called when a script branches backward during execution, when a function returns, and at the end of the script.

Syntax

JSBranchCallback JS_SetBranchCallback(JSContext *cx,
    JSBranchCallback cb);
NameTypeDescription
cxJSContext *Pointer to a JS context from which to derive runtime information.
cbJSBranchCallbackThe object that encapsulates the callback function.

Description

JS_SetBranchCallback specifies a callback function that is automatically called when a script branches backward during execution, when a function returns, and at the end of the script. One typical use for a callback is in a client application to enable a user to abort an operation.

See Also

Groups [ Function ]
Documents [ LXR ID Search ]

This page was generated by APIDOC