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

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

#
Swig | 31 lines | 19 code | 9 blank | 3 comment | 0 complexity | 0c1374232804ab943c09feecfe4a0849 MD5 | raw file
 1/* This interface files tests whether SWIG handles overloaded
 2   renamed functions. 
 3*/
 4
 5%module name_cxx
 6
 7#pragma SWIG nowarn=SWIGWARN_DEPRECATED_NAME // %name is deprecated. Use %rename instead.
 8
 9%name("bar_int")
10%inline %{
11void bar(int i) {}
12%}
13
14%name("bar_double")
15%inline %{
16void bar(double i) {}
17%}
18
19// %name inheritance test
20%{
21class A {
22};
23
24class B : public A {
25};
26
27%}
28
29%name(AA) class A { };
30class B : public A { };
31