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

Function loadStructInfo

src/modules.mjs:380–384  ·  view source on GitHub ↗

* Read JSON file containing struct and macro/define information * that can then be used in JavaScript via macros.

(filename)

Source from the content-addressed store, hash-verified

378 * that can then be used in JavaScript via macros.
379 */
380function loadStructInfo(filename) {
381 const temp = JSON.parse(readFile(filename));
382 Object.assign(structs, temp.structs);
383 Object.assign(defines, temp.defines);
384}
385
386if (!BOOTSTRAPPING_STRUCT_INFO) {
387 // Load struct and define information.

Callers 2

modules.mjsFile · 0.85

Calls 3

readFileFunction · 0.90
parseMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected