Implemented some utility functions.
This commit is contained in:
parent
b6ccf2db40
commit
a181d36b58
5
main.go
5
main.go
|
@ -121,8 +121,5 @@ func doOnShouldQuit(unused unsafe.Pointer) C.int {
|
|||
if shouldQuitFunc == nil {
|
||||
return 0
|
||||
}
|
||||
if shouldQuitFunc() {
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
return frombool(shouldQuitFunc())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue