diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-05-29 17:50:40 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-05-29 17:50:40 -0700 |
commit | 731ae9d12985230ea05bf174c22771f52d453332 (patch) | |
tree | b4ca2d304a639dafa3babcd0298036fb6f6a3279 /tools/bindings_generator.py | |
parent | 2b6a3dbadf24de1fc21ee8776ad1271c4045955d (diff) |
fix stack save problem with last bindings generator commit
Diffstat (limited to 'tools/bindings_generator.py')
-rwxr-xr-x | tools/bindings_generator.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/bindings_generator.py b/tools/bindings_generator.py index fad784a7..0c7c814f 100755 --- a/tools/bindings_generator.py +++ b/tools/bindings_generator.py @@ -672,9 +672,6 @@ def generate_class(generating_classname, classname, clazz): # TODO: deprecate ge has_string_convs = False calls = '' - if has_string_convs: - calls += 'var stack = Runtime.stackSave();\n'; - calls += 'try {\n' #print 'js loopin', params, '|', len(args)#, args for args in params: @@ -715,7 +712,7 @@ def generate_class(generating_classname, classname, clazz): # TODO: deprecate ge calls += '\n' if has_string_convs: - calls += '} finally { Runtime.stackRestore(stack) }\n'; + calls = 'var stack = Runtime.stackSave();\ntry {\n' + calls + '} finally { Runtime.stackRestore(stack) }\n'; print 'Maekin:', classname, generating_classname, mname, mname_suffixed if constructor: |