diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-08-15 18:15:40 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-08-15 18:15:40 -0700 |
commit | 0b5ee13f3806fa3771e1a63d37c6b0535a1d5c52 (patch) | |
tree | 7b62d539b1511917a10a6bf594b1a2e593adb448 | |
parent | 644c765180596bdaf5297fd55b3e689de2203231 (diff) |
bindings fix
-rwxr-xr-x | tools/bindings_generator.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/bindings_generator.py b/tools/bindings_generator.py index b1371302..1e34c11f 100755 --- a/tools/bindings_generator.py +++ b/tools/bindings_generator.py @@ -221,6 +221,8 @@ for classname, clazz in parsed.classes.iteritems(): template_name = classes[parent]['template_typename'] template_value = fix_template_value(template.replace('>', '')) print 'template', template_value, 'for', classname, '::', parent, ' | ', template_name + if parent not in classes and '::' in classname: # They might both be subclasses in the same parent + parent = classname.split('::')[0] + '::' + parent if parent not in classes: print 'Warning: parent class', parent, 'not a known class. Ignoring.' return @@ -259,6 +261,7 @@ function %(classname)s__wrap__(ptr) { return %(classname)s__cache__[ptr] = ret; } ''' % { 'classname': classname } +# %(classname)s.prototype['fields'] = Runtime.generateStructInfo(null, '%(classname)s'); - consider adding this def generate_class(generating_classname, classname, clazz): # TODO: deprecate generating? generating_classname_head = generating_classname.split('::')[-1] |