mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +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()
|
mu.Lock()
|
||||||
defer mu.Unlock()
|
defer mu.Unlock()
|
||||||
index++
|
index++
|
||||||
|
for fns[index] != nil {
|
||||||
|
index++
|
||||||
|
}
|
||||||
fns[index] = fn
|
fns[index] = fn
|
||||||
return index
|
return index
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user