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

Function fxNative

xs/sources/xsAPI.c:530–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528/* Host Constructors, Functions and Objects */
529
530void fxNative(txMachine* the)
531{
532 if (mxHasTarget)
533 mxPushSlot(mxTarget);
534 else
535 mxPushSlot(mxFunction);
536 mxGetID(mxID(_prototype));
537 fxNewHostInstance(the);
538 mxPullSlot(mxResult);
539}
540
541void fxBuildHosts(txMachine* the, txInteger c, const txHostFunctionBuilder* builder)
542{

Callers

nothing calls this directly

Calls 1

fxNewHostInstanceFunction · 0.85

Tested by

no test coverage detected