diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-03 15:57:31 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-03 15:57:31 -0700 |
commit | 6eaaebf4dd9c1dbd38dba929199cd3121b666c0f (patch) | |
tree | 2f61c2a85666b57fa3e03e47d6f6251623ec0ab9 /emscripten.py | |
parent | 1b458cf9c55c1ad4f74f1d3332d163e506baf4e7 (diff) |
add extCall_* methods in asm dlopen support, parallel to invoke in that they are able to access other modules, but do not catch exceptions
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/emscripten.py b/emscripten.py index 2e727d51..257527fe 100755 --- a/emscripten.py +++ b/emscripten.py @@ -483,6 +483,9 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None, shared.Settings.copy(settings) asm_setup += '\n' + shared.JS.make_invoke(sig) + '\n' basic_funcs.append('invoke_%s' % sig) + if settings.get('DLOPEN_SUPPORT'): + asm_setup += '\n' + shared.JS.make_extcall(sig) + '\n' + basic_funcs.append('extCall_%s' % sig) # calculate exports exported_implemented_functions = list(exported_implemented_functions) |