MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / preprocessFiles

Function preprocessFiles

src/modules.mjs:225–242  ·  view source on GitHub ↗
(filenames)

Source from the content-addressed store, hash-verified

223}
224
225function preprocessFiles(filenames) {
226 timer.start('preprocessFiles')
227 const results = {};
228 for (const filename of filenames) {
229 debugLog(`pre-processing JS library: ${filename}`);
230 pushCurrentFile(filename);
231 try {
232 results[filename] = processMacros(preprocess(filename), filename);
233 } catch (e) {
234 error(`error preprocessing JS library "${filename}":`);
235 throw e;
236 } finally {
237 popCurrentFile();
238 }
239 }
240 timer.stop('preprocessFiles')
241 return results;
242}
243
244export const LibraryManager = {
245 library: {},

Callers 1

loadFunction · 0.85

Calls 8

debugLogFunction · 0.90
pushCurrentFileFunction · 0.90
processMacrosFunction · 0.90
preprocessFunction · 0.90
errorFunction · 0.90
popCurrentFileFunction · 0.90
startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected