added kwargs.i test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
143bfb2a62
commit
6880fb6b15
3 changed files with 38 additions and 0 deletions
30
Examples/test-suite/python/kwargs.i
Normal file
30
Examples/test-suite/python/kwargs.i
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
%module kwargs
|
||||
|
||||
%feature("kwargs");
|
||||
|
||||
//
|
||||
// No warnings nor overload methods should be generated here
|
||||
//
|
||||
|
||||
%extend Foo
|
||||
{
|
||||
int efoo(int a =1, int b = 0) {return a + b; }
|
||||
static int sfoo(int a =1, int b = 0) { return a + b; }
|
||||
}
|
||||
|
||||
%inline %{
|
||||
|
||||
|
||||
int foo(int a =1, int b = 0) {return a + b; }
|
||||
|
||||
|
||||
|
||||
struct Foo
|
||||
{
|
||||
Foo(int a, int b = 0){}
|
||||
|
||||
int foo(int a =1, int b = 0) {return a + b; }
|
||||
static int bar(int a =1, int b = 0) {return a + b; }
|
||||
};
|
||||
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue