PageRenderTime 38ms CodeModel.GetById 32ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/using1.i

#
Swig | 22 lines | 15 code | 7 blank | 0 comment | 0 complexity | 33296dc14113fac79669f1ecca9fba07 MD5 | raw file
 1%module using1
 2
 3%warnfilter(SWIGWARN_RUBY_WRONG_NAME) X::_FooImpl;	/* Ruby, wrong class name */
 4
 5%inline %{
 6
 7namespace X {
 8  typedef int Integer;
 9
10  class _FooImpl {
11  public:
12      typedef Integer value_type;
13  };
14  typedef _FooImpl Foo;
15}
16
17namespace Y = X;
18using namespace Y;
19
20int spam(Foo::value_type x) { return x; }
21
22%}