/trunk/Examples/test-suite/using1.i
# · Swig · 22 lines · 15 code · 7 blank · 0 comment · 0 complexity · 33296dc14113fac79669f1ecca9fba07 MD5 · raw file
- %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; }
- %}