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

Function fxGetHostHooksIf

xs/sources/xsAPI.c:827–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825}
826
827txHostHooks* fxGetHostHooksIf(txMachine* the, txSlot* slot)
828{
829 txSlot* host = fxCheckHostObject(the, slot);
830 if (host) {
831 if (host->flag & XS_HOST_HOOKS_FLAG)
832 return host->value.host.variant.hooks;
833 }
834 return NULL;
835}
836
837txHostHooks* fxGetHostHooksValidate(txMachine* the, txSlot* slot, txString validator)
838{

Callers

nothing calls this directly

Calls 1

fxCheckHostObjectFunction · 0.85

Tested by

no test coverage detected