diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-07-24 10:34:59 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-07-24 10:34:59 -0700 |
commit | 8897795d333e197666574b21120d2044a5abf938 (patch) | |
tree | 771f0fa34ed0bd0f6b8147efeff0e70fc32db81a /tools/bindings_generator.py | |
parent | 78241b0617a8bbe62023ba578c412238ce802b80 (diff) |
fix for binding static functions
Diffstat (limited to 'tools/bindings_generator.py')
-rwxr-xr-x | tools/bindings_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bindings_generator.py b/tools/bindings_generator.py index 877e5fe3..191e7adf 100755 --- a/tools/bindings_generator.py +++ b/tools/bindings_generator.py @@ -235,8 +235,8 @@ def generate_class(generating_classname, classname, clazz): calls += '''this.ptr = _%s_p%d(%s); ''' % (fullname, i, ', '.join(justargs[:i])) else: - calls += '''%s_%s_p%d(%s%s); -''' % ('return ' if ret != 'void' else '', fullname, i, 'this.ptr' if need_self else '', (', ' if i > 0 else '') + ', '.join(justargs[:i])) + calls += '''%s_%s_p%d(%s); +''' % ('return ' if ret != 'void' else '', fullname, i, ', '.join((['this.ptr'] if need_self else []) + justargs[:i])) print 'Maekin:', classname, generating_classname, mname, mname_suffixed if constructor: |