Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOJSSystem.h File Reference
import <Foundation/Foundation.h>
#include <jsapi.h>
+ Include dependency graph for OOJSSystem.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void InitOOJSSystem (JSContext *context, JSObject *global)
 

Function Documentation

◆ InitOOJSSystem()

void InitOOJSSystem ( JSContext * context,
JSObject * global )

Definition at line 227 of file OOJSSystem.m.

228{
230
231 // Create system object as a property of the global object.
232 JS_DefineObject(context, global, "system", &sSystemClass, sSystemPrototype, OOJS_PROP_READONLY);
233}
static JSPropertySpec sSystemProperties[]
Definition OOJSSystem.m:148
static JSFunctionSpec sSystemStaticMethods[]
Definition OOJSSystem.m:218
static JSClass sSystemClass
Definition OOJSSystem.m:96
static JSFunctionSpec sSystemMethods[]
Definition OOJSSystem.m:184
static JSObject * sSystemPrototype
Definition OOJSSystem.m:47
JSBool OOJSUnconstructableConstruct(JSContext *context, uintN argc, jsval *vp)
#define OOJS_PROP_READONLY

References OOJS_PROP_READONLY, OOJSUnconstructableConstruct(), sSystemClass, sSystemMethods, sSystemProperties, sSystemPrototype, and sSystemStaticMethods.

+ Here is the call graph for this function: