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

Function fxCheckHostObject

xs/sources/xsAPI.c:667–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665
666
667txSlot* fxCheckHostObject(txMachine* the, txSlot* it)
668{
669 txSlot* result = C_NULL;
670 if (it->kind == XS_REFERENCE_KIND) {
671 it = it->value.reference;
672 if (it->next) {
673 it = it->next;
674 if ((it->flag & XS_INTERNAL_FLAG) && (it->kind == XS_HOST_KIND))
675 result = it;
676 }
677 }
678 return result;
679}
680
681txSlot* fxNewHostObject(txMachine* the, txDestructor theDestructor)
682{

Callers 15

fxGetHostBufferLengthFunction · 0.85
fxGetHostChunkFunction · 0.85
fxGetHostChunkIfFunction · 0.85
fxGetHostChunkValidateFunction · 0.85
fxGetHostDataFunction · 0.85
fxGetHostDataIfFunction · 0.85
fxGetHostDataValidateFunction · 0.85
fxGetHostDestructorFunction · 0.85
fxGetHostHandleFunction · 0.85
fxGetHostHooksFunction · 0.85
fxGetHostHooksIfFunction · 0.85
fxGetHostHooksValidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected