swig/Examples/test-suite/varargs.i
Dave Beazley 048281b9f8 new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-04 16:15:09 +00:00

17 lines
299 B
OpenEdge ABL

// Tests SWIG's *default* handling of varargs. The default behavior is to simply ignore the varargs.
%module varargs
%inline %{
char *test(const char *fmt, ...) {
return (char *) fmt;
}
class Foo {
public:
char *test(const char *fmt, ...) {
return (char *) fmt;
}
};
%}