4 ;; copy the boolean from OpenGL
5 (defctype boolean
:uint8
)
7 (defconstant +false
+ #x0
)
8 (defconstant +true
+ #x1
)
10 (defmethod cffi:expand-to-foreign
(value (type (eql 'boolean
)))
11 `(if ,value
+true
+ +false
+))
13 (defmethod cffi:expand-from-foreign
(value (type (eql 'boolean
)))
14 `(not (= ,value
+false
+)))