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

Function fxGetHostChunkIf

xs/sources/xsAPI.c:731–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731void* fxGetHostChunkIf(txMachine* the, txSlot* slot)
732{
733 txSlot* host = fxCheckHostObject(the, slot);
734 if (host) {
735 if (host->flag & XS_HOST_CHUNK_FLAG)
736 return host->value.host.data;
737 }
738 return NULL;
739}
740
741void* fxGetHostChunkValidate(txMachine* the, txSlot* slot, void* validator)
742{

Callers

nothing calls this directly

Calls 1

fxCheckHostObjectFunction · 0.85

Tested by

no test coverage detected