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

Function fxGetHostDestructor

xs/sources/xsAPI.c:793–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793txDestructor fxGetHostDestructor(txMachine* the, txSlot* slot)
794{
795 txSlot* host = fxCheckHostObject(the, slot);
796 if (host) {
797 if (!(host->flag & XS_HOST_HOOKS_FLAG))
798 return host->value.host.variant.destructor;
799 mxSyntaxError("C: xsGetHostDestructor: no host destructor");
800 }
801 mxSyntaxError("C: xsGetHostDestructor: not a host object");
802 return NULL;
803}
804
805void* fxGetHostHandle(txMachine* the, txSlot* slot)
806{

Callers

nothing calls this directly

Calls 1

fxCheckHostObjectFunction · 0.85

Tested by

no test coverage detected