Fix issue with duplicate parent callers

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2009-08-27 23:49:09 +01:00
1 parent 551f2d5ee9
commit c341e94a89
1 file changed
+6 -1
+6 -1
View File
@@ -237,7 +237,12 @@ class CppHelperClass(object):
overload.pystruct = self.class_.pystruct
self.virtual_parent_callers[name] = overload
assert self.class_ is not None
overload.add(parent_caller)
for existing in overload.wrappers:
if parent_caller.matches_signature(existing):
break # don't re-add already existing method
else:
overload.add(parent_caller)
def add_custom_method(self, declaration, body=None):
"""