PageRenderTime 9ms CodeModel.GetById 8ms app.highlight 0ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/Examples/test-suite/overload_rename.i

#
Swig | 28 lines | 18 code | 10 blank | 0 comment | 0 complexity | a71e1c6796eb7fa70853711ff45a5830 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1%module overload_rename
 2
 3
 4%{
 5
 6class Foo {
 7public:
 8  Foo(float a, float b=1.0)
 9  {
10  }
11  
12  Foo(float a, int c, float b=1.0)
13  {
14  }
15  
16};
17
18%}
19
20%rename(Foo_int) Foo::Foo(float a, int c, float b=1.0);
21
22class Foo {
23public:
24  Foo(float a, float b=1.0);
25  Foo(float a, int c, float b=1.0);
26};
27
28