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

Function fxSetHostData

xs/sources/xsAPI.c:907–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905}
906
907void fxSetHostData(txMachine* the, txSlot* slot, void* theData)
908{
909 txSlot* host = fxCheckHostObject(the, slot);
910 if (host) {
911 host->flag &= ~XS_HOST_CHUNK_FLAG;
912 host->value.host.data = theData;
913 }
914 else
915 mxSyntaxError("C: xsSetHostData: not a host object");
916}
917
918void fxSetHostDestructor(txMachine* the, txSlot* slot, txDestructor theDestructor)
919{

Callers 5

_262_agent_start_auxFunction · 0.85
fx_agent_start_auxFunction · 0.85
fx_callbackTimerFunction · 0.85
fx_clearTimerFunction · 0.85
fx_setTimerFunction · 0.85

Calls 1

fxCheckHostObjectFunction · 0.85

Tested by

no test coverage detected