diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-28 13:59:39 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-28 13:59:39 -0800 |
commit | 496dd28973e6156773975fd6ad093cab271f46bb (patch) | |
tree | adc0b8b761e97008123a3832d9b99a803eee150c /emscripten.py | |
parent | 1712044102bdd9d48ed4b699d5cba6368a3beb16 (diff) |
improve asm safe heap support and add ASM_HEAP_LOG
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/emscripten.py b/emscripten.py index 5af2ac91..2ceb5e13 100755 --- a/emscripten.py +++ b/emscripten.py @@ -395,11 +395,11 @@ var i64Math_modulo = function(a, b, c, d, e) { i64Math.modulo(a, b, c, d, e) }; # finalize funcs_js = ''' %s -function asmPrintInt(x) { - Module.print('int ' + x);// + ' ' + new Error().stack); +function asmPrintInt(x, y) { + Module.print('int ' + x + ',' + y);// + ' ' + new Error().stack); } -function asmPrintFloat(x) { - Module.print('float ' + x);// + ' ' + new Error().stack); +function asmPrintFloat(x, y) { + Module.print('float ' + x + ',' + y);// + ' ' + new Error().stack); } var asm = (function(global, env, buffer) { 'use asm'; |