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

Function fxGetHostDataIf

xs/sources/xsAPI.c:768–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768void* fxGetHostDataIf(txMachine* the, txSlot* slot)
769{
770 txSlot* host = fxCheckHostObject(the, slot);
771 if (host) {
772 if (!(host->flag & XS_HOST_CHUNK_FLAG))
773 return host->value.host.data;
774 }
775 return NULL;
776}
777
778void* fxGetHostDataValidate(txMachine* the, txSlot* slot, void* validator)
779{

Callers 1

fx_clearTimerFunction · 0.85

Calls 1

fxCheckHostObjectFunction · 0.85

Tested by

no test coverage detected