PageRenderTime 10ms CodeModel.GetById 6ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

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