1 %module overload_extend
8 %typemap(default) double y "$1=1000;";
11 #ifdef SWIGLUA // lua only has one numeric type, so some overloads shadow each other creating warnings
12 %warnfilter(SWIGWARN_LANG_OVERLOAD_SHADOW) test;
15 %warnfilter(SWIGWARN_PARSE_REDEFINED) Foo::test;
20 int test() { return 0; }
21 int test(int x) { x = 0; return 1; }
22 int test(char *s) { s = 0; return 2; }
24 double test(double x, double y = 1000) { return x + y; }
26 double test(double x, double y) { return x + y; }
35 int test() { return -1; }
51 return (Bar *) malloc(sizeof(Bar));