/trunk/Examples/test-suite/conversion_namespace.i
Swig | 14 lines | 12 code | 2 blank | 0 comment | 0 complexity | daa7869129f54058455c7eea0bdd3e91 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %module conversion_namespace
- %rename(toFoo) oss::Bar::operator Foo();
- %inline %{
- namespace oss
- {
- struct Foo {
- };
- struct Bar {
- operator Foo () { return Foo(); }
- };
- }
- %}