From ef4d7628a93ebd8189deacd5e8a1ed1bfb5814b2 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 18 Apr 2016 20:35:29 -0700 Subject: [PATCH] [Go] Fix use of goout typemap in non-cgo mode. --- Source/Modules/go.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Modules/go.cxx b/Source/Modules/go.cxx index 637e5e3a6..6013fa15b 100644 --- a/Source/Modules/go.cxx +++ b/Source/Modules/go.cxx @@ -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);