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:
parent
bc43673a86
commit
8af91dcc75
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue