mirror of https://github.com/swig/swig
added more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6bb78221ff
commit
0ac2c4ea77
|
@ -3,9 +3,29 @@
|
|||
%inline %{
|
||||
class Foo {
|
||||
public:
|
||||
int Foo::bar(int x) {
|
||||
return x;
|
||||
}
|
||||
Foo::Foo(void)
|
||||
{
|
||||
}
|
||||
|
||||
Foo::Foo(int)
|
||||
{
|
||||
}
|
||||
|
||||
int Foo::bar(int x) {
|
||||
return x;
|
||||
}
|
||||
};
|
||||
|
||||
class quat;
|
||||
class matrix4;
|
||||
class tacka3;
|
||||
|
||||
class quat {
|
||||
public:
|
||||
quat::quat(void){}
|
||||
quat::quat(float in_w, float x, float y, float z){}
|
||||
quat::quat(const tacka3& axis, float angle){}
|
||||
quat::quat(const matrix4& m){}
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import class_scope_weird
|
||||
|
||||
f = class_scope_weird.Foo()
|
||||
g = class_scope_weird.Foo(3)
|
||||
if f.bar(3) != 3:
|
||||
raise RuntimeError
|
||||
|
|
Loading…
Reference in New Issue