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

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

#
Swig | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | 8101a60cd27784c02ffe660588265e05 MD5 | raw file
 1%module conversion
 2%rename(toFoo) Bar::operator Foo();
 3
 4%inline %{ 
 5   struct Foo {
 6   };
 7   struct Bar {
 8      operator Foo () { return Foo(); }
 9   };
10%} 
11