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

Function fxSetArchive

xs/sources/xsAPI.c:2468–2482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2466}
2467
2468void fxSetArchive(txMachine* the, void* archive)
2469{
2470 the->archive = archive;
2471 if (archive) {
2472 fxNewHostObject(the, C_NULL);
2473 the->stack->value.reference->next->value.host.data = archive;
2474 mxPush(mxGlobal);
2475 mxDefineID(fxID(the, "archive"), XS_DONT_ENUM_FLAG, XS_GET_ONLY);
2476 mxPop();
2477 }
2478 else {
2479 mxPush(mxGlobal);
2480 mxDeleteID(fxID(the, "archive"));
2481 }
2482}
2483
2484txBoolean fxIsProfiling(txMachine* the)
2485{

Callers 6

fxWorkerInitializeFunction · 0.85
modInstallModsFunction · 0.85
modInstallModsFunction · 0.85
modInstallModsFunction · 0.85
modInstallModsFunction · 0.85
modInstallModsFunction · 0.85

Calls 2

fxNewHostObjectFunction · 0.85
fxIDFunction · 0.85

Tested by

no test coverage detected