PageRenderTime 46ms CodeModel.GetById 17ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module using1
  2. %warnfilter(SWIGWARN_RUBY_WRONG_NAME) 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 namespace Y;
  14. int spam(Foo::value_type x) { return x; }
  15. %}