mirror of
https://github.com/golang/go.git
synced 2024-11-21 21:11:11 +00:00
Updated cgo (markdown)
parent
1052a3c16d
commit
0a404a1b03
3
cgo.md
3
cgo.md
@ -126,6 +126,9 @@ func register(fn func(C.int)) int {
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
index++
|
||||
for fns[index] != nil {
|
||||
index++
|
||||
}
|
||||
fns[index] = fn
|
||||
return index
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user