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

Function fxGetHostData

xs/sources/xsAPI.c:756–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754}
755
756void* fxGetHostData(txMachine* the, txSlot* slot)
757{
758 txSlot* host = fxCheckHostObject(the, slot);
759 if (host) {
760 if (!(host->flag & XS_HOST_CHUNK_FLAG))
761 return host->value.host.data;
762 mxSyntaxError("C: xsGetHostData: no host data");
763 }
764 mxSyntaxError("C: xsGetHostData: not a host object");
765 return NULL;
766}
767
768void* fxGetHostDataIf(txMachine* the, txSlot* slot)
769{

Callers 2

fx_clearTimerFunction · 0.85
fxMapModuleDescriptorFunction · 0.85

Calls 1

fxCheckHostObjectFunction · 0.85

Tested by

no test coverage detected