PageRenderTime 54ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Swig | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | 8101a60cd27784c02ffe660588265e05 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module conversion
  2. %rename(toFoo) Bar::operator Foo();
  3. %inline %{
  4. struct Foo {
  5. };
  6. struct Bar {
  7. operator Foo () { return Foo(); }
  8. };
  9. %}