default args added to test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6396 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b0cb1889b6
commit
aa13f87bfa
2 changed files with 12 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
|||
int spam(int x) { return x; }
|
||||
int spam(int x, int y) { return x + y ; }
|
||||
int spam(int x, int y,int z) { return x + y ; }
|
||||
int spam(Foo f, double d = 10.0) { return 0; }
|
||||
};
|
||||
|
||||
%inline %{
|
||||
|
|
@ -45,6 +46,7 @@ public:
|
|||
int spam(int x) { return x; }
|
||||
int spam(int x, int y) { return x + y ; }
|
||||
int spam(int x, int y,int z) { return x + y ; }
|
||||
int spam(Bar b, double d = 10.0) { return 0; }
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -58,6 +60,7 @@ public:
|
|||
int spam(int x) { return x; }
|
||||
int spam(int x, int y) { return x + y ; }
|
||||
int spam(int x, int y,int z) { return x + y ; }
|
||||
int spam(Foo f, double d = 10.0) { return 0; }
|
||||
};
|
||||
|
||||
%inline %{
|
||||
|
|
@ -98,6 +101,7 @@ public:
|
|||
int spam(int x) { return x; }
|
||||
int spam(int x, int y) { return x + y ; }
|
||||
int spam(int x, int y,int z) { return x + y ; }
|
||||
int spam(Bar b, double d = 10.0) { return 0; }
|
||||
};
|
||||
|
||||
%template(BarTi) BarT<int>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue