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