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

Function PiuPort_create

modules/piu/All/piuPort.c:133–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void PiuPort_create(xsMachine* the)
134{
135 PiuPort* self;
136 xsVars(4);
137 xsSetHostChunk(xsThis, NULL, sizeof(PiuPortRecord));
138 self = PIU(Port, xsThis);
139 (*self)->the = the;
140 (*self)->reference = xsToReference(xsThis);
141 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuPortHooks);
142 (*self)->dispatch = (PiuDispatch)&PiuPortDispatchRecord;
143 (*self)->recordSize = PiuRecordSize(sizeof(PiuPortRecord));
144 (*self)->flags = piuVisible;
145 PiuContentDictionary(the, self);
146 PiuBehaviorOnCreate(self);
147}
148
149void PiuPort_set_skin(xsMachine *the)
150{

Callers

nothing calls this directly

Calls 2

PiuContentDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85

Tested by

no test coverage detected