add virtual destructors where needed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b8f2bb553a
commit
f6340798c4
22 changed files with 55 additions and 4 deletions
|
|
@ -75,6 +75,8 @@ int test_prepost(int x, int y) {
|
|||
%inline %{
|
||||
class Foo {
|
||||
public:
|
||||
virtual ~Foo() { }
|
||||
|
||||
virtual int test_preassert(int x, int y) {
|
||||
if ((x > 0) && (y > 0)) return 1;
|
||||
return 0;
|
||||
|
|
@ -140,6 +142,7 @@ public:
|
|||
%inline %{
|
||||
class A {
|
||||
public:
|
||||
virtual ~A() {}
|
||||
virtual int foo(int a, int b, int c, int d, int e) {
|
||||
if ((a > 0) && (b > 0) && (c > 0) && (d > 0) && (e > 0)) {
|
||||
return 1;
|
||||
|
|
@ -150,6 +153,7 @@ public:
|
|||
|
||||
class B {
|
||||
public:
|
||||
virtual ~B() {}
|
||||
virtual int bar(int a, int b, int c, int d, int e) {
|
||||
if ((a > 0) && (b > 0) && (c > 0) && (d > 0) && (e > 0)) {
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue