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

Function fxGetHostHooks

xs/sources/xsAPI.c:815–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813}
814
815txHostHooks* fxGetHostHooks(txMachine* the, txSlot* slot)
816{
817 txSlot* host = fxCheckHostObject(the, slot);
818 if (host) {
819 if (host->flag & XS_HOST_HOOKS_FLAG)
820 return host->value.host.variant.hooks;
821 mxSyntaxError("C: xsGetHostHooks: no host hooks");
822 }
823 mxSyntaxError("C: xsGetHostHooks: not a host object");
824 return NULL;
825}
826
827txHostHooks* fxGetHostHooksIf(txMachine* the, txSlot* slot)
828{

Callers 1

fx_clearTimerFunction · 0.85

Calls 1

fxCheckHostObjectFunction · 0.85

Tested by

no test coverage detected