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

Function fxRunProgramFile

xs/tools/xst.c:1038–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036}
1037
1038void fxRunProgramFile(txMachine* the, txString path, txUnsigned flags)
1039{
1040 txSlot* realm = mxProgram.value.reference->next->value.module.realm;
1041 txScript* script = fxLoadScript(the, path, flags);
1042 mxModuleInstanceInternal(mxProgram.value.reference)->value.module.id = fxID(the, path);
1043 fxRunScript(the, script, mxRealmGlobal(realm), C_NULL, mxRealmClosures(realm)->value.reference, C_NULL, mxProgram.value.reference);
1044 mxPullSlot(mxResult);
1045}
1046
1047void fxAbort(txMachine* the, int status)
1048{

Callers 1

fxRunTestCaseFunction · 0.85

Calls 3

fxIDFunction · 0.85
fxRunScriptFunction · 0.85
fxLoadScriptFunction · 0.70

Tested by

no test coverage detected