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

Go to the source code of this file.

Functions

void SetUpOOJSGlobal (JSContext *context, JSValueConst global)

Function Documentation

◆ SetUpOOJSGlobal()

void SetUpOOJSGlobal ( JSContext * context,
JSValueConst global )

Definition at line 135 of file OOJSGlobal.m.

136{
137 JS_SetPropertyFunctionList(context, global, sGlobalProperties, OOJS_COUNT(sGlobalProperties));
138 JS_SetPropertyFunctionList(context, global, sGlobalMethods, OOJS_COUNT(sGlobalMethods));
139}
static JSFunctionSpec sGlobalMethods[]
Definition OOJSGlobal.m:124
static JSPropertySpec sGlobalProperties[]
Definition OOJSGlobal.m:114
#define OOJS_COUNT(array)

References OOJS_COUNT, sGlobalMethods, and sGlobalProperties.