MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuInverter_create

Function PiuInverter_create

modules/piu/Pebble/piuInverter.c:91–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void PiuInverter_create(xsMachine* the)
92{
93 PiuInverter* self;
94 xsVars(4);
95 xsSetHostChunk(xsThis, NULL, sizeof(PiuInverterRecord));
96 self = PIU(Inverter, xsThis);
97 (*self)->the = the;
98 (*self)->reference = xsToReference(xsThis);
99 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuInverterHooks);
100 (*self)->dispatch = (PiuDispatch)&PiuInverterDispatchRecord;
101 (*self)->recordSize = PiuRecordSize(sizeof(PiuInverterRecord));
102 (*self)->flags = piuVisible;
103 PiuContentDictionary(the, self);
104 PiuBehaviorOnCreate(self);
105}
106
107

Callers

nothing calls this directly

Calls 2

PiuContentDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85

Tested by

no test coverage detected