added more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0fae376c59
commit
ff39c579da
2 changed files with 24 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue