@specs-feup/clava
Version:
A C/C++ source-to-source compiler written in Typescript
21 lines • 726 B
JavaScript
/**
* This file is used only in Clava Classic to load the core API.
* This is done for compatibility with the previous version of Clava.
* Do not use this file in new (clava-js) projects.
* Remove this file if Clava Classic has died out.
*/
const prefix = "@specs-feup/clava/api/";
const coreImports = [];
const sideEffectsOnlyImports = ["Joinpoints.js"];
for (const sideEffectsOnlyImport of sideEffectsOnlyImports) {
await import(prefix + sideEffectsOnlyImport);
}
for (const coreImport of coreImports) {
const foo = Object.entries(await import(prefix + coreImport));
foo.forEach(([key, value]) => {
// @ts-ignore
globalThis[key] = value;
});
}
export {};
//# sourceMappingURL=core.js.map