]> Cypherpunks repositories - gostls13.git/commit
runtime: handle kindString in cgoCheckArg
authorIan Lance Taylor <iant@golang.org>
Wed, 27 Jan 2016 22:07:25 +0000 (14:07 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 27 Jan 2016 22:50:37 +0000 (22:50 +0000)
commite97096661ecaf1f7476c2320208d92709b72279d
treed1cc0f4ecb427ac90122a752ae57910b1a3b90a8
parente7ce1ba88c7c2a8c02c48ecb341540b30d9e9159
runtime: handle kindString in cgoCheckArg

It's awkward to get a string value in cgoCheckArg, but SWIG testing
revealed that it is possible.  The new handling of extra files in the
ptr.go test emulates what SWIG does with an exported function that
returns a string.

Change-Id: I453717f867b8a49499576c28550e7c93053a0cf8
Reviewed-on: https://go-review.googlesource.com/19020
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
misc/cgo/errors/ptr.go
src/runtime/cgocall.go