mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
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:
@@ -522,6 +522,7 @@ class MethodDef(FunctionDef):
|
||||
self.protection = ''
|
||||
self.defaultCtor = False # use this ctor as the default one
|
||||
self.noDerivedCtor = False # don't generate a ctor in the derived class for this ctor
|
||||
self.virtualCatcherCode = None
|
||||
self.__dict__.update(kw)
|
||||
if element is not None:
|
||||
self.extract(element)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user