PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1%module using2
 2
 3%warnfilter(801) 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 Y::Foo;
19
20int spam(Foo::value_type x) { return x; }
21
22%}