If the user explicitly directs that the Go type be a slice, don't use

a pointer to a slice even if the actual type is reference.  from John
Admanski.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13853 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Ian Lance Taylor 2012-10-01 17:18:27 +00:00
commit 8af91dcc75

View file

@ -4638,7 +4638,11 @@ private:
Append(ret, name);
return ret;
} else if (is_slice) {
// Slices are always passed as a _goslice_, whether or not references
// are involved.
ret = NewString("_goslice_ ");
Append(ret, name);
return ret;
} else if (is_function || is_member) {
ret = NewString("void *");
Append(ret, name);