aboutsummaryrefslogtreecommitdiff
path: root/src/testing/example.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2015-05-07 12:58:43 -0700
committerIan Lance Taylor <iant@golang.org>2015-05-08 04:23:43 +0000
commite8fc93ea45ca0147f24f61f5ed48e68b57d473df (patch)
tree962916fa38f7a7f19c2138f331c4cfde8e1d0d67 /src/testing/example.go
parentfd392ee52b984e655390ad9147c9fe95e82bc459 (diff)
downloadgo-e8fc93ea45ca0147f24f61f5ed48e68b57d473df.tar.xz
cmd/cgo: wrap generated exports with extern "C" for C++
This will make it possible for C++ code to #include the export header file and see the correct declarations. The preamble remains the user's responsibility. It would not be appropriate to wrap the preamble in extern "C", because it might include header files that work with both C and C++. Putting those header files in an extern "C" block would break them. Change-Id: Ifb40879d709d26596d5c80b1307a49f1bd70932a Reviewed-on: https://go-review.googlesource.com/9850 Reviewed-by: Minux Ma <minux@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/testing/example.go')
0 files changed, 0 insertions, 0 deletions