Oolite 1.91.0.7699-250829-cea269d
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 110 of file OOJSOolite.m.

111{
112 JSObject *oolitePrototype = JS_InitClass(context, global, NULL, &sOoliteClass, OOJSUnconstructableConstruct, 0, sOoliteProperties, sOoliteMethods, NULL, NULL);
113 JS_DefineObject(context, global, "oolite", &sOoliteClass, oolitePrototype, OOJS_PROP_READONLY);
114}
static JSFunctionSpec sOoliteMethods[]
Definition OOJSOolite.m:102
static JSPropertySpec sOoliteProperties[]
Definition OOJSOolite.m:82
static JSClass sOoliteClass
Definition OOJSOolite.m:46
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: