PageRenderTime 53ms CodeModel.GetById 23ms RepoModel.GetById 0ms 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. %warnfilter(801) X::_FooImpl; /* Ruby, wrong class name */
  3. %inline %{
  4. namespace X {
  5. typedef int Integer;
  6. class _FooImpl {
  7. public:
  8. typedef Integer value_type;
  9. };
  10. typedef _FooImpl Foo;
  11. }
  12. namespace Y = X;
  13. using Y::Foo;
  14. int spam(Foo::value_type x) { return x; }
  15. %}