adding more cases and suppressing the 470 warning

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7854 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-11-21 20:29:54 +00:00
commit 1f92be9a3d
8 changed files with 36 additions and 15 deletions

View file

@ -1,4 +1,6 @@
%module(directors="1") director_basic
#pragma SWIG nowarn=470
%{
#include <string>
@ -32,7 +34,7 @@
%{
#include <complex>
%}
%feature("director");
%feature("director") A;
// basic renaming
%rename(rg) A::gg;
@ -99,11 +101,18 @@ public:
return b;
}
virtual Bar* pmethod(Bar *b)
{
b->x += 12;
return b;
}
Bar cmethod(const Bar &b)
{
return vmethod(b);
}
static MyClass *get_self(MyClass *c)
{
return c;