diff options
| author | Pietro Gagliardi <[email protected]> | 2015-12-11 20:37:59 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-12-11 20:37:59 -0500 |
| commit | f8e3f12ab02b528f2a05a4f713d7af7ea8e44b42 (patch) | |
| tree | 82dedf4d37f0f6d31e88ebb2ca1ce6499dead261 /prev/common_darwin.go | |
| parent | e34c561ed5bedeb180437ec165882b98d70d38c1 (diff) | |
LET'S GET THIS FINAL REWRITE EVER STARTED
Diffstat (limited to 'prev/common_darwin.go')
| -rw-r--r-- | prev/common_darwin.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/prev/common_darwin.go b/prev/common_darwin.go new file mode 100644 index 0000000..bf8c0c0 --- /dev/null +++ b/prev/common_darwin.go @@ -0,0 +1,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 +} |
