Allow setting virtual catcher code for normal methods too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-06-30 21:01:16 +00:00
parent 13bc06d908
commit b8ca4e1102
2 changed files with 6 additions and 0 deletions

View File

@@ -633,6 +633,11 @@ from .%s import *
cm.body = code
self.generateCppMethod(cm, stream, indent, skipDeclaration=True)
if method.virtualCatcherCode:
stream.write('%s%%VirtualCatcherCode\n' % indent)
stream.write(nci(method.virtualCatcherCode, len(indent)+4))
stream.write('%s%%End\n' % indent)
stream.write('\n')
if checkOverloads and method.overloads: