Fix handling of typedef'd function pointers for Go

Add equivalent runtime tests for Python and Java
This commit is contained in:
William S Fulton 2017-03-17 07:49:21 +00:00
commit dcc5911839
6 changed files with 101 additions and 1 deletions

View file

@ -6241,7 +6241,7 @@ private:
Setattr(undefined_enum_types, t, ret);
Delete(tt);
}
} else if (SwigType_isfunctionpointer(type) || SwigType_isfunction(type)) {
} else if (SwigType_isfunctionpointer(t) || SwigType_isfunction(t)) {
ret = NewString("_swig_fnptr");
} else if (SwigType_ismemberpointer(t)) {
ret = NewString("_swig_memberptr");