/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/using2.i
Swig | 22 lines | 15 code | 7 blank | 0 comment | 0 complexity | 3f96098837b1bc5532cc1f889ca1f199 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %module using2
- %warnfilter(801) X::_FooImpl; /* Ruby, wrong class name */
- %inline %{
- namespace X {
- typedef int Integer;
- class _FooImpl {
- public:
- typedef Integer value_type;
- };
- typedef _FooImpl Foo;
- }
- namespace Y = X;
- using Y::Foo;
- int spam(Foo::value_type x) { return x; }
- %}