/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
- %module overload_extend
- %inline %{
- typedef struct Foo {
- } Foo;
- %}
- %extend Foo {
- int test(int x) { x = 0; return 1; }
- int test(char *s) { s = 0; return 2; }
- int test(double x, double y) { x = 0; y = 0; return 3; }
- };