more %varargs tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7091 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
99310ae64c
commit
88c486c0dc
1 changed files with 5 additions and 0 deletions
|
|
@ -2,6 +2,8 @@
|
|||
%module varargs
|
||||
|
||||
%varargs(int mode = 0) test_def;
|
||||
%varargs(int mode = 0) Foo::Foo;
|
||||
%varargs(int mode = 0) Foo::statictest(const char*fmt, ...);
|
||||
|
||||
%inline %{
|
||||
char *test(const char *fmt, ...) {
|
||||
|
|
@ -28,6 +30,9 @@ public:
|
|||
char *test(const char *fmt, ...) {
|
||||
return (char *) fmt;
|
||||
}
|
||||
static char *statictest(const char *fmt, ...) {
|
||||
return (char *) fmt;
|
||||
}
|
||||
};
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue