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

Function fxSetHostHooks

xs/sources/xsAPI.c:929–938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

927}
928
929void fxSetHostHooks(txMachine* the, txSlot* slot, const txHostHooks* theHooks)
930{
931 txSlot* host = fxCheckHostObject(the, slot);
932 if (host) {
933 host->flag |= XS_HOST_HOOKS_FLAG;
934 host->value.host.variant.hooks = (txHostHooks *) theHooks;
935 }
936 else
937 mxSyntaxError("C: xsSetHostHooks: not a host object");
938}
939
940/* Identifiers */
941

Callers 1

fx_setTimerFunction · 0.85

Calls 1

fxCheckHostObjectFunction · 0.85

Tested by

no test coverage detected