From cb96b8c6fd74f195cfddde327888e65ab39337ff Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 20 Jul 2014 21:26:26 -0400 Subject: Added common_darwin.go; moved toBOOL() there. --- redo/common_darwin.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 redo/common_darwin.go (limited to 'redo/common_darwin.go') diff --git a/redo/common_darwin.go b/redo/common_darwin.go new file mode 100644 index 0000000..0c49a58 --- /dev/null +++ b/redo/common_darwin.go @@ -0,0 +1,13 @@ +// 20 july 2014 + +package ui + +// #include "objc_darwin.h" +import "C" + +func toBOOL(b bool) C.BOOL { + if b == true { + return C.YES + } + return C.NO +} -- cgit v1.2.3