diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-04-13 17:20:16 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-04-13 17:21:18 -0700 |
commit | 9e59c98c81fa207665428b7e3f84b48e1fb0f902 (patch) | |
tree | d12145faab8fcdb4e50d9f9362ef48ed9ab26c48 /src/compiler.js | |
parent | 234819df4c3425fbb4f5d77afe83fdaf246bf648 (diff) |
refactor library-needing code out of jsifier
Diffstat (limited to 'src/compiler.js')
-rw-r--r-- | src/compiler.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js index ced13cca..53e2b020 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -49,6 +49,12 @@ load('analyzer.js'); load('jsifier.js'); load('runtime.js'); +// Load library, with preprocessing and macros + +for (suffix in set('', '_sdl', '_gl')) { + eval(processMacros(preprocess(read('library' + suffix + '.js'), CONSTANTS))); +} + //=============================== // Main //=============================== |