AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Entry:     JS_SetContextPrivate (Function)
Summary:     Sets the private data for a context.
Syntax:
void JS_SetContextPrivate(JSContext *cx, void *data);

     Argument     Type     Description
     cx     JSContext *     Pointer to a JS context for which to set private data.
                 
     data     void *     Pointer to the private data for the context.
                 
Description:
JS_SetContextPrivate sets the private data pointer for a specified JSContextcx.

Only a pointer to data is stored with the context. The data pointer is converted to a jsval for storage purposes. You must free this pointer in your finalization code if you allocated storage for it. It is up to your application to maintain the actual data.


See also:
JS_GetContextPrivate

[sh-index] Back to list of manuals