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

Function fxGetHostChunk

xs/sources/xsAPI.c:719–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717}
718
719void* fxGetHostChunk(txMachine* the, txSlot* slot)
720{
721 txSlot* host = fxCheckHostObject(the, slot);
722 if (host) {
723 if (host->flag & XS_HOST_CHUNK_FLAG)
724 return host->value.host.data;
725 mxSyntaxError("C: xsGetHostChunk: no host data");
726 }
727 mxSyntaxError("C: xsGetHostChunk: not a host object");
728 return NULL;
729}
730
731void* fxGetHostChunkIf(txMachine* the, txSlot* slot)
732{

Callers 1

fxVerifyCodeFunction · 0.85

Calls 1

fxCheckHostObjectFunction · 0.85

Tested by

no test coverage detected