summaryrefslogtreecommitdiff
path: root/prev/common_darwin.go
blob: bf8c0c03147039ff00802b291c9be17a79b909bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 20 july 2014

package ui

// #include "objc_darwin.h"
import "C"

func fromBOOL(b C.BOOL) bool {
	if b != C.NO {
		return true
	}
	return false
}

func toBOOL(b bool) C.BOOL {
	if b == true {
		return C.YES
	}
	return C.NO
}