diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 17:19:48 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 17:19:48 -0800 |
commit | cc3d094151bf9b2652be290645ddd7a094f3ea3e (patch) | |
tree | 58ec4b777a08c96fe544b28056abdea5462a2e6d | |
parent | b7de9da3a411760a4d97a6b4374a1ce99b5c5123 (diff) |
emit function table mask in dynCall defs
-rwxr-xr-x | emscripten.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emscripten.py b/emscripten.py index ad31bff9..ea685718 100755 --- a/emscripten.py +++ b/emscripten.py @@ -323,9 +323,9 @@ var i64Math_modulo = function(a, b, c, d, e) { i64Math.modulo(a, b, c, d, e) }; function_tables_impls.append(''' function dynCall_%s(index%s%s) { %s - %sFUNCTION_TABLE_%s[index](%s); + %sFUNCTION_TABLE_%s[index&{{{ FTM_%s }}}](%s); } -''' % (sig, ',' if len(sig) > 1 else '', args, arg_coercions, 'return ' if sig[0] != 'v' else '', sig, args)) +''' % (sig, ',' if len(sig) > 1 else '', args, arg_coercions, 'return ' if sig[0] != 'v' else '', sig, sig, args)) # calculate exports exported_implemented_functions = list(exported_implemented_functions) exports = [] |