adding more cases and suppressing the 470 warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7854 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d18d84cd3b
commit
f4a45fa252
8 changed files with 36 additions and 15 deletions
|
|
@ -3,16 +3,6 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
class Foo {
|
||||
public:
|
||||
virtual ~Foo() {}
|
||||
virtual std::string ping() { return "Foo::ping()"; }
|
||||
virtual std::string pong(int val = 3) { return "Foo::pong();" + ping(); }
|
||||
};
|
||||
|
||||
Foo *launder(Foo *f) {
|
||||
return f;
|
||||
}
|
||||
|
||||
// define dummy director exception classes to prevent spurious errors
|
||||
// in target languages that do not support directors.
|
||||
|
|
@ -61,14 +51,21 @@ class DirectorMethodException: public Swig::DirectorException {};
|
|||
|
||||
%feature("director") Foo;
|
||||
|
||||
%inline {
|
||||
|
||||
class Foo {
|
||||
public:
|
||||
virtual ~Foo() {}
|
||||
virtual std::string ping() { return "Foo::ping()"; }
|
||||
virtual std::string pong(int val = 3) { return "Foo::pong();" + ping(); }
|
||||
virtual ~Foo() {}
|
||||
virtual std::string ping() { return "Foo::ping()"; }
|
||||
virtual std::string pong(int val=3) { return "Foo::pong();" + ping(); }
|
||||
};
|
||||
|
||||
Foo *launder(Foo *f);
|
||||
Foo *launder(Foo *f) {
|
||||
return f;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
%{
|
||||
struct Unknown1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue