summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/cgo/cgo.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/cgo/cgo.go')
-rw-r--r--src/pkg/runtime/cgo/cgo.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/pkg/runtime/cgo/cgo.go b/src/pkg/runtime/cgo/cgo.go
new file mode 100644
index 000000000..5dcced1e4
--- /dev/null
+++ b/src/pkg/runtime/cgo/cgo.go
@@ -0,0 +1,17 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+/*
+Package cgo contains runtime support for code generated
+by the cgo tool. See the documentation for the cgo command
+for details on using cgo.
+*/
+package cgo
+
+// Supports _cgo_panic by converting a string constant to an empty
+// interface.
+
+func cgoStringToEface(s string, ret *interface{}) {
+ *ret = s
+}