HCoop
/
clinton
/
guile-figl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57a309e
)
#f is a null pointer for glut callbacks
author
Andy Wingo
<wingo@pobox.com>
Wed, 13 Feb 2013 15:06:09 +0000
(16:06 +0100)
committer
Andy Wingo
<wingo@pobox.com>
Wed, 13 Feb 2013 15:06:09 +0000
(16:06 +0100)
* figl/glut/types.scm (coerce-callback-pointer/ephemeral):
(coerce-callback-pointer/sticky): Allow #f to indicate a null pointer.
figl/glut/types.scm
patch
|
blob
|
blame
|
history
diff --git
a/figl/glut/types.scm
b/figl/glut/types.scm
index
9a043f6
..
9d1befd
100644
(file)
--- a/
figl/glut/types.scm
+++ b/
figl/glut/types.scm
@@
-83,6
+83,8
@@
(define (coerce-callback-pointer/ephemeral x return-type arg-types)
(cond
+ ((not x)
+ ffi:%null-pointer)
((ffi:pointer? x)
x)
((procedure? x)
@@
-98,6
+100,8
@@
(define (coerce-callback-pointer/sticky x return-type arg-types)
(cond
+ ((not x)
+ ffi:%null-pointer)
((ffi:pointer? x)
x)
((procedure? x)