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
2 changed files with 24 additions and 3 deletions
|
|
@ -3,9 +3,29 @@
|
||||||
%inline %{
|
%inline %{
|
||||||
class Foo {
|
class Foo {
|
||||||
public:
|
public:
|
||||||
int Foo::bar(int x) {
|
Foo::Foo(void)
|
||||||
return x;
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
import class_scope_weird
|
||||||
|
|
||||||
f = class_scope_weird.Foo()
|
f = class_scope_weird.Foo()
|
||||||
|
g = class_scope_weird.Foo(3)
|
||||||
if f.bar(3) != 3:
|
if f.bar(3) != 3:
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue