JavaScript-1.5 Reference

JS_LockGCThing Function Deprecated

Summary

Protects a specified JS item from garbage collection.

Syntax

JSBool JS_LockGCThing(JSContext *cx, void *thing);
NameTypeDescription
cxJSContext *Pointer to a JS context from which to derive runtime information.
thingvoid *Pointer to the item to protect.

Description

JS_LockGCThing is a deprecated function that protects a specified item, thing, associated with an executable script context, cx, from garbage collection. thing is a JS double, string, or object. This function is available only for backward compatibility with existing applications. Use JS_AddRoot instead of this function.

See Also

Groups [ Deprecated | Function ]
Documents [ LXR ID Search ]
Entries [ JS_AddRoot | JS_UnlockGCThing ]

This page was generated by APIDOC