Skip to content

Commit 1452142

Browse files
committed
document goSymName
1 parent 4365b21 commit 1452142

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/mkcgo/generate.go

+2
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ func fnCalledFromGo(fn *mkcgo.Func) bool {
614614
}
615615

616616
// goSymName returns the Go symbol name for a C symbol name.
617+
// The returned name can be transformed depending on the
618+
// value of the private flag.
617619
func goSymName(name string) string {
618620
if name == "" {
619621
panic("empty name")

0 commit comments

Comments
 (0)