aboutsummaryrefslogtreecommitdiff
path: root/files/ja/mozilla/projects/spidermonkey/jsapi_reference/js_getruntime/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/mozilla/projects/spidermonkey/jsapi_reference/js_getruntime/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/mozilla/projects/spidermonkey/jsapi_reference/js_getruntime/index.html')
-rw-r--r--files/ja/mozilla/projects/spidermonkey/jsapi_reference/js_getruntime/index.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/files/ja/mozilla/projects/spidermonkey/jsapi_reference/js_getruntime/index.html b/files/ja/mozilla/projects/spidermonkey/jsapi_reference/js_getruntime/index.html
new file mode 100644
index 0000000000..36a7593d57
--- /dev/null
+++ b/files/ja/mozilla/projects/spidermonkey/jsapi_reference/js_getruntime/index.html
@@ -0,0 +1,47 @@
+---
+title: JS GetRuntime
+slug: Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetRuntime
+tags:
+ - JSAPI Reference
+ - SpiderMonkey
+translation_of: Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetRuntime
+---
+<p>
+
+</p><div class="breadcrumbs"><a href="/ja" title="ja">メインページ</a> » <a href="/ja/docs/SpiderMonkey" title="SpiderMonkey">SpiderMonkey</a> »
+ <a href="/ja/docs/SpiderMonkey/JSAPI_Reference" title="JSAPI_Reference">JSAPI リファレンス</a> »
+ <code>JS_GetRuntime</code></div>
+
+
+
+<p></p>
+
+<p><code>JSRuntime</code>へのポインタを取得します。 <span class="comment">Retrieves a pointer to the &lt;code&gt;JSRuntime&lt;/code&gt;.</span></p>
+
+<h2 id=".E6.A7.8B.E6.96.87" name=".E6.A7.8B.E6.96.87">構文</h2>
+
+<pre class="eval"><a href="/ja/JSRuntime" title="ja/JSRuntime">JSRuntime</a> * <strong>JS_GetRuntime</strong>(<a href="/ja/JSRuntime" title="ja/JSRuntime">JSContext</a> *cx);
+</pre>
+
+<table class="fullwidth-table">
+ <tbody>
+ <tr>
+ <th>Name</th>
+ <th>Type</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td><code>cx</code></td>
+ <td><code><a href="/ja/JSRuntime" title="ja/JSRuntime">JSContext</a> *</code></td>
+ <td>コンテキスト</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id=".E8.AA.AC.E6.98.8E" name=".E8.AA.AC.E6.98.8E">説明</h2>
+
+<p><code>JS_GetRuntime</code>は、<code>JSContext</code> <code>cx</code>と関連付けられた<code>JSRuntime</code>へのポインタを取得する関数です。各コンテキストは、その生成時に指定した (<code><a href="/ja/JS_NewContext" title="ja/JS_NewContext">JS_NewContext</a></code>を参照) <code>JSRuntime</code>と関連付けられており、<code>JS_GetRuntime</code>を使うことでその関連付けを取得することができます。 <span class="comment">&lt;code&gt;JS_GetRuntime&lt;/code&gt; retrieves a pointer to the &lt;code&gt;JSRuntime&lt;/code&gt; with which a specified &lt;code&gt;JSContext&lt;/code&gt;, &lt;code&gt;cx&lt;/code&gt;, is associated. Each context is associated with a particular &lt;code&gt;JSRuntime&lt;/code&gt; when it is created (see &lt;code&gt;<a href="/ja/JS_NewContext">JS_NewContext</a>&lt;/code&gt;); &lt;code&gt;JS_GetRuntime&lt;/code&gt; provides a convenient, programmatic way to look up the association.</span></p>
+
+<p>{{ LXRSearch("ident", "i", "JS_GetRuntime") }}</p>
+
+<p>{{ languages( { "en": "en/JS_GetRuntime" } ) }}</p>