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

Function fxNewLinkerCallback

xs/tools/xslBase.c:386–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386txCallback fxNewLinkerCallback(txMachine* the, txCallback callback, txString name)
387{
388 txLinker* linker = (txLinker*)(the->context);
389 txLinkerCallback* result = fxNewLinkerChunkClear(linker, sizeof(txLinkerCallback));
390 result->nextCallback = linker->firstCallback;
391 linker->firstCallback = result;
392 if (callback == fx_TypedArray)
393 result->callback = gxTypeCallbacks[gxTypeCallbacksIndex++];
394 else
395 result->callback = callback;
396 result->name = name;
397 return result->callback;
398}
399
400void* fxNewLinkerChunk(txLinker* linker, txSize size)
401{

Callers 1

mainFunction · 0.85

Calls 1

fxNewLinkerChunkClearFunction · 0.85

Tested by

no test coverage detected