Oolite 1.91.0.7604-240417-a536cbe
Loading...
Searching...
No Matches
Functions
OOJSClock.h File Reference
#include <jsapi.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, JSObject *global)
 

Function Documentation

◆ InitOOJSClock()

void InitOOJSClock ( JSContext * context,
JSObject * global )

Definition at line 109 of file OOJSClock.m.

110{
111 JSObject *clockPrototype = JS_InitClass(context, global, NULL, &sClockClass, OOJSUnconstructableConstruct, 0, sClockProperties, sClockMethods, NULL, NULL);
112 JS_DefineObject(context, global, "clock", &sClockClass, clockPrototype, OOJS_PROP_READONLY);
113}
static JSClass sClockClass
Definition OOJSClock.m:43
static JSPropertySpec sClockProperties[]
Definition OOJSClock.m:79
static JSFunctionSpec sClockMethods[]
Definition OOJSClock.m:99
JSBool OOJSUnconstructableConstruct(JSContext *context, uintN argc, jsval *vp)
#define OOJS_PROP_READONLY

References OOJS_PROP_READONLY, OOJSUnconstructableConstruct(), sClockClass, sClockMethods, and sClockProperties.

+ Here is the call graph for this function: