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

Function shouldPreprocess

src/jsifier.mjs:154–157  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

152}
153
154function shouldPreprocess(fileName) {
155 var content = readFile(fileName).trim();
156 return content.startsWith('#preprocess\n') || content.startsWith('#preprocess\r\n');
157}
158
159function getIncludeFile(fileName, alwaysPreprocess, shortName) {
160 shortName ??= fileName;

Callers 1

getIncludeFileFunction · 0.85

Calls 1

readFileFunction · 0.90

Tested by

no test coverage detected