PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/test-suite/voidtest.i

#
Swig | 23 lines | 15 code | 8 blank | 0 comment | 0 complexity | 7fe515cfeab955462f121f755f353ea9 MD5 | raw file
 1%module voidtest
 2
 3%inline %{
 4
 5void globalfunc(void) {
 6}
 7
 8class Foo {
 9public:
10   Foo(void) { }
11   void memberfunc(void) { }
12   static void staticmemberfunc(void) { }
13};
14
15
16void *vfunc1(void *f) { return f; }
17void *vfunc2(Foo *f) { return f; }
18Foo  *vfunc3(void *f) { return (Foo *) f; }
19Foo  *vfunc4(Foo *f) { return f; }
20 
21
22%}
23