mirror of https://github.com/swig/swig.git
36 lines
802 B
OpenEdge ABL
36 lines
802 B
OpenEdge ABL
%module voidtest
|
|
|
|
%inline %{
|
|
void globalfunc(void) {}
|
|
|
|
typedef void VOID_TP;
|
|
typedef VOID_TP VOID_TYPE;
|
|
void globalfunc_typedef(VOID_TYPE) {}
|
|
|
|
class Foo {
|
|
public:
|
|
Foo(void) { }
|
|
void memberfunc(void) { }
|
|
void* get_this() { return this; }
|
|
static void staticmemberfunc(void) { }
|
|
};
|
|
|
|
class FooVoidTypedef {
|
|
public:
|
|
FooVoidTypedef(VOID_TYPE) { }
|
|
void memberfunc(VOID_TYPE) { }
|
|
void memberfunc_const(VOID_TYPE) const { }
|
|
void *memberfunc_const_voidptr(VOID_TYPE) const { return 0; }
|
|
virtual ~FooVoidTypedef() { }
|
|
static void staticmemberfunc(VOID_TYPE) { }
|
|
};
|
|
|
|
void *vfunc1(void *f) { return f; }
|
|
void *vfunc2(Foo *f) { return f; }
|
|
Foo *vfunc3(void *f) { return (Foo *) f; }
|
|
Foo *vfunc4(Foo *f) { return f; }
|
|
|
|
bool test_pointers_equal(void *a, void *b) { return a == b; }
|
|
|
|
%}
|