use preinst-swig in all the examples
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
53aca58eb3
commit
6de5dc38fe
21 changed files with 19 additions and 34 deletions
|
|
@ -1,5 +1,5 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../swig
|
||||
SWIG = $(TOP)/../preinst-swig
|
||||
CXXSRCS = example.cxx
|
||||
TARGET = example
|
||||
INTERFACE = example.i
|
||||
|
|
|
|||
|
|
@ -12,14 +12,6 @@ class PyCallback(example.Callback):
|
|||
example.Callback.__init__(self)
|
||||
def run(self):
|
||||
print "PyCallback.run()"
|
||||
def __del__(self):
|
||||
print "PyCallback.__del__()"
|
||||
# for shadow class extensions that are not "disowned" and
|
||||
# define a __del__ method, it is very important to call the
|
||||
# base class __del__. otherwise the c++ objects will never
|
||||
# be deleted.
|
||||
example.Callback.__del__(self)
|
||||
|
||||
|
||||
# Create an Caller instance
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue