Oolite
Loading...
Searching...
No Matches
OOJSOolite.h File Reference
import <Foundation/Foundation.h>
#include <jsapi.h>
Include dependency graph for OOJSOolite.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void InitOOJSOolite (JSContext *context, JSObject *global)

Function Documentation

◆ InitOOJSOolite()

void InitOOJSOolite ( JSContext * context,
JSObject * global )

Definition at line 100 of file OOJSOolite.m.

101{
102 JSObject* oolitePrototype = JS_InitClass(context, global, NULL, &sOoliteClass, OOJSUnconstructableConstruct, 0, sOoliteProperties, sOoliteMethods, NULL, NULL);
103 JS_DefineObject(context, global, "oolite", &sOoliteClass, oolitePrototype, OOJS_PROP_READONLY);
104}
static JSFunctionSpec sOoliteMethods[]
Definition OOJSOolite.m:94
static JSPropertySpec sOoliteProperties[]
Definition OOJSOolite.m:76
static JSClass sOoliteClass
Definition OOJSOolite.m:44
JSBool OOJSUnconstructableConstruct(JSContext *context, uintN argc, jsval *vp)
#define OOJS_PROP_READONLY

References OOJS_PROP_READONLY, OOJSUnconstructableConstruct(), sOoliteClass, sOoliteMethods, and sOoliteProperties.

Referenced by OOJavaScriptEngine(Private)::createMainThreadContext.

Here is the call graph for this function:
Here is the caller graph for this function: