/trunk/Examples/test-suite/conversion.i
# · Swig · 11 lines · 9 code · 2 blank · 0 comment · 0 complexity · 8101a60cd27784c02ffe660588265e05 MD5 · raw file
- %module conversion
- %rename(toFoo) Bar::operator Foo();
- %inline %{
- struct Foo {
- };
- struct Bar {
- operator Foo () { return Foo(); }
- };
- %}