| ||||||
SummarySpecifies a new callback function for the garbage collector. | ||||||
SyntaxJSGCCallback JS_SetGCCallback(JSContext *cx, JSGCCallback cb); | ||||||
DescriptionJS_SetGCCallback enables you to specify the function is called by the garbage collector to return control to the calling program when garbage collection is complete. cx is the context in which you specify the callback. cb is a pointer to the new callback function to use.
To restore the original callback, simply call
| ||||||
See Also
|