swig/Examples/test-suite/overload_extendc.i
Matthias Köppe bce63d09c8 Empty structs are not portable C.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-12-13 17:24:21 +00:00

17 lines
255 B
OpenEdge ABL

%module overload_extendc
%inline %{
typedef struct Foo {
int dummy;
} Foo;
%}
%extend Foo {
int test(int x) { x = 0; return 1; }
int test(char *s) { s = 0; return 2; }
int test(double x, double y) { x = 0; y = 0; return 3; }
};