Ignore all global operator functions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-12-19 20:56:36 +00:00
parent fbd4a6fa9e
commit fd71827916

View File

@@ -86,12 +86,12 @@ def run():
c.find('operator*=').findOverload('wxInt32').ignore()
c.find('operator/=').findOverload('wxInt32').ignore()
# ignore some of the global operators too
# ignore all the global operators too, there is no equivallent in Python
for item in module:
if isinstance(item, etgtools.FunctionDef) and item.type == 'wxPoint2DInt':
item.ignore()
if item.name in ['operator*', 'operator/'] and 'wxInt32' in item.argsString:
item.ignore()
if isinstance(item, etgtools.FunctionDef) and item.name.startswith('operator'):
for f in item.all():
f.ignore()
c = module.find('wxRect2DDouble')