JS_GetRuntime

  • Revision slug: SpiderMonkey/JSAPI_Reference/JS_GetRuntime
  • Revision title: JS_GetRuntime
  • Revision id: 146940
  • Created:
  • Creator: Tservo
  • Is current revision? No
  • Comment Initial skeleton

Revision Content

<title>JS_GetRuntime</title>

Summary

Function

Retrieves a pointer to the JSRuntime.

Syntax

JSRuntime * JS_GetRuntime(JSContext *cx)

Description

JS_GetRuntime retrieves a pointer to the JSRuntime with which a specified JSContext, cx, is associated. All contexts are associated with a particular JSRuntime when they are first created; JS_GetRuntime provides a convenient, programmatic way to look up the association.

See Also

Groups Functions
Documents {{template.LXRSearch("ident", "i", "JS_GetRuntime", "LXR ID Search")}}
Entries

JS_MaybeGC, JS_malloc, JS_realloc

Revision Source

<p> &lt;title&gt;JS_GetRuntime&lt;/title&gt;
</p>
<h2 name="Summary"> Summary </h2>
<p><b>Function</b>
</p><p>Retrieves a pointer to the <code>JSRuntime</code>.
</p>
<h2 name="Syntax"> Syntax </h2>
<pre>JSRuntime * JS_GetRuntime(JSContext *cx)
</pre>
<h2 name="Description"> Description </h2>
<p><code>JS_GetRuntime</code> retrieves a pointer to the <code>JSRuntime</code> with which a specified <code>JSContext</code>, <code>cx</code>, is associated. All contexts are associated with a particular <code>JSRuntime</code> when they are first created; <code>JS_GetRuntime</code> provides a convenient, programmatic way to look up the association.
</p>
<h2 name="See_Also"> See Also </h2>
<table class="fullwidth-table">
<tbody><tr>
<td>Groups</td>
<td><a href="en/JSAPI_Reference#Functions">Functions</a></td>
</tr>
<tr>
<td>Documents</td>
<td>{{template.LXRSearch("ident", "i", "JS_GetRuntime", "LXR ID Search")}}</td>
</tr>
<tr>
<td>Entries</td>
<td>
<p><a href="en/JSAPI_Reference/JS_MaybeGC">JS_MaybeGC</a>,
<a href="en/JSAPI_Reference/JS_malloc">JS_malloc</a>,
<a href="en/JSAPI_Reference/JS_realloc">JS_realloc</a>
</p>
</td>
</tr>
</tbody></table>
Revert to this revision