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

Function fxBaseResource

xs/tools/xslBase.c:110–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void fxBaseResource(txLinker* linker, txLinkerResource* resource, txString base, txInteger baseLength)
111{
112 if (c_strncmp(resource->path, base, baseLength))
113 fxReportLinkerError(linker, "'%s': not relative to '%s'", resource->path, base);
114 resource->path += baseLength;
115 resource->pathSize = mxStringLength(resource->path) + 1;
116}
117
118void fxBaseScript(txLinker* linker, txLinkerScript* script, txString base, txInteger baseLength)
119{

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

fxReportLinkerErrorFunction · 0.85

Tested by

no test coverage detected