PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/rel-1-3-15/SWIG/Examples/test-suite/overload_extendc.i

#
Swig | 16 lines | 10 code | 6 blank | 0 comment | 0 complexity | bf6aeb4d16fd367da32b90a12ad57f40 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module overload_extend
  2. %inline %{
  3. typedef struct Foo {
  4. } Foo;
  5. %}
  6. %extend Foo {
  7. int test(int x) { x = 0; return 1; }
  8. int test(char *s) { s = 0; return 2; }
  9. int test(double x, double y) { x = 0; y = 0; return 3; }
  10. };