#f is a null pointer for glut callbacks
[clinton/guile-figl.git] / figl / glut / types.scm
index 9a043f6..9d1befd 100644 (file)
@@ -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)
 
 (define (coerce-callback-pointer/sticky x return-type arg-types)
   (cond
+   ((not x)
+    ffi:%null-pointer)
    ((ffi:pointer? x)
     x)
    ((procedure? x)