PageRenderTime 40ms CodeModel.GetById 38ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Swig | 14 lines | 12 code | 2 blank | 0 comment | 0 complexity | 78c23487896ab382f5b5e19512d4360c MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1%module conversion_namespace
 2%rename(toFoo) oss::Bar::operator oss::Foo();
 3
 4%inline %{ 
 5 namespace oss 
 6 { 
 7   struct Foo {
 8   };
 9   struct Bar {
10      operator Foo () { return Foo(); }
11   };
12  } 
13%} 
14