From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../jsapi_reference/js_getruntime/index.html | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 files/ja/mozilla/projects/spidermonkey/jsapi_reference/js_getruntime/index.html (limited to 'files/ja/mozilla/projects/spidermonkey/jsapi_reference/js_getruntime/index.html') 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 +--- +

+ +

+ + + +

+ +

JSRuntimeへのポインタを取得します。 Retrieves a pointer to the <code>JSRuntime</code>.

+ +

構文

+ +
JSRuntime * JS_GetRuntime(JSContext *cx);
+
+ + + + + + + + + + + + + + +
NameTypeDescription
cxJSContext *コンテキスト
+ +

説明

+ +

JS_GetRuntimeは、JSContext cxと関連付けられたJSRuntimeへのポインタを取得する関数です。各コンテキストは、その生成時に指定した (JS_NewContextを参照) JSRuntimeと関連付けられており、JS_GetRuntimeを使うことでその関連付けを取得することができます。 <code>JS_GetRuntime</code> retrieves a pointer to the <code>JSRuntime</code> with which a specified <code>JSContext</code>, <code>cx</code>, is associated. Each context is associated with a particular <code>JSRuntime</code> when it is created (see <code>JS_NewContext</code>); <code>JS_GetRuntime</code> provides a convenient, programmatic way to look up the association.

+ +

{{ LXRSearch("ident", "i", "JS_GetRuntime") }}

+ +

{{ languages( { "en": "en/JS_GetRuntime" } ) }}

-- cgit v1.2.3-54-g00ecf