use $self special variable instead of self in %extend

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-11-08 01:01:37 +00:00
commit 65c52f7c06
20 changed files with 52 additions and 52 deletions

View file

@ -6,7 +6,7 @@
%extend Foo {
Foo(int a) { return new Foo(); }
~Foo() { delete self;}
~Foo() { delete $self;}
int spam(int x) { return x; }
int spam(int x, int y) { return x + y ; }
int spam(int x, int y,int z) { return x + y ; }
@ -41,7 +41,7 @@ public:
%extend Bar {
Bar(int a) { return new Bar(); }
~Bar() { delete self;}
~Bar() { delete $self;}
int spam() { return 1}
int spam(int x) { return x; }
int spam(int x, int y) { return x + y ; }
@ -56,7 +56,7 @@ public:
%extend FooT {
FooT(int a) { return new FooT<T>(); }
~FooT() { delete self;}
~FooT() { delete $self;}
int spam(int x) { return x; }
int spam(int x, int y) { return x + y ; }
int spam(int x, int y,int z) { return x + y ; }
@ -96,7 +96,7 @@ public:
%extend BarT {
BarT(int a) { return new BarT<T>(); }
~BarT() { delete self;}
~BarT() { delete $self;}
int spam() { return 1}
int spam(int x) { return x; }
int spam(int x, int y) { return x + y ; }