/trunk/Examples/test-suite/using1.i
Swig | 22 lines | 15 code | 7 blank | 0 comment | 0 complexity | 33296dc14113fac79669f1ecca9fba07 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %module using1
- %warnfilter(SWIGWARN_RUBY_WRONG_NAME) 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 namespace Y;
- int spam(Foo::value_type x) { return x; }
- %}