[Go] Fix use of goout typemap in non-cgo mode.

This commit is contained in:
Ian Lance Taylor 2016-04-18 20:35:29 -07:00
commit ef4d7628a9

View file

@ -1624,8 +1624,13 @@ private:
receiver = NULL;
}
Swig_save("cgoGoWrapper", n, "type", "tmap:goout", NULL);
Setattr(n, "type", result);
String *goout = goTypemapLookup("goout", n, "swig_r");
Swig_restore(n);
bool add_to_interface = (interfaces && !is_constructor && !is_destructor && !is_static && !overname && checkFunctionVisibility(n, NULL));
bool needs_wrapper = (gccgo_flag || receiver || is_constructor || is_destructor || parm_count > required_count);