diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-25 13:15:44 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-25 13:23:16 -0700 |
commit | 3ff3a402d58a8c33151d6ce6767d34cb5bc9cc29 (patch) | |
tree | e1613fb290794925c2a6c5d0116321899cc309ef /emscripten.py | |
parent | 6a6bb771d6d7786064331afab47943d65b0d4fd6 (diff) |
move to FROUND option for Math.fround
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index dbea6eb2..8829a50f 100755 --- a/emscripten.py +++ b/emscripten.py @@ -451,7 +451,7 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None, math_envs = ['Math.min'] # TODO: move min to maths asm_setup += '\n'.join(['var %s = %s;' % (f.replace('.', '_'), f) for f in math_envs]) - if settings['TO_FLOAT32']: maths += ['Math.toFloat32'] + if settings['FROUND']: maths += ['Math.fround'] basic_funcs = ['abort', 'assert', 'asmPrintInt', 'asmPrintFloat'] + [m.replace('.', '_') for m in math_envs] if settings['RESERVED_FUNCTION_POINTERS'] > 0: basic_funcs.append('jsCall') |