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

Go to the source code of this file.

Functions

void InitOOJSClock (JSContext *context, JSValueConst global)

Function Documentation

◆ InitOOJSClock()

void InitOOJSClock ( JSContext * context,
JSValueConst global )

Definition at line 88 of file OOJSClock.m.

89{
91 JSValueConst clockPrototype = OOJSInitClass(context, global, sClockClassID, JS_UNDEFINED, OOJSUnconstructableConstruct, 0,
93 JS_DefinePropertyValueStr(context, global, "clock", JS_NewObjectProtoClass(context, clockPrototype, sClockClassID), OOJS_PROP_READONLY);
94}
static JSClass sClockClass
Definition OOJSClock.m:42
static JSPropertySpec sClockProperties[]
Definition OOJSClock.m:74
static JSFunctionSpec sClockMethods[]
Definition OOJSClock.m:92
JSBool OOJSUnconstructableConstruct(JSContext *context, uintN argc, jsval *vp)
#define OOJS_PROP_READONLY
static JSClassID sClockClassID
Definition OOJSClock.m:42
JSClassID OOJSRegisterClass(JSClassID *ioClassID, const JSClassDef *classDef)
Definition OOJSClasses.m:61
JSValueConst OOJSInitClass(JSContext *context, JSValueConst global, JSClassID classID, JSValueConst parentPrototype, JSCFunction *constructor, int constructorArgCount, const JSCFunctionListEntry *properties, size_t propertyCount, const JSCFunctionListEntry *methods, size_t methodCount, const JSCFunctionListEntry *staticMethods, size_t staticMethodCount)
#define OOJS_COUNT(array)

References OOJS_COUNT, OOJS_PROP_READONLY, OOJSInitClass(), OOJSRegisterClass(), OOJSUnconstructableConstruct(), sClockClass, sClockClassID, sClockMethods, and sClockProperties.

Here is the call graph for this function: