Improve pffi-pointer-null
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
'(import (chicken foreign)
|
||||
(chicken memory))
|
||||
#t))))
|
||||
(ypsilon
|
||||
#;(ypsilon
|
||||
(define-syntax pffi-init
|
||||
(lambda (x)
|
||||
(syntax-case x ()
|
||||
|
||||
@@ -44,10 +44,9 @@
|
||||
(lambda (pointer)
|
||||
(c-free pointer)))
|
||||
|
||||
; FIXME I dont know where to else get null :D
|
||||
(define pffi-pointer-null
|
||||
(lambda ()
|
||||
(c-malloc 999999999999999999999999999999999999999999999999999999999999)))
|
||||
0))
|
||||
|
||||
(define pffi-pointer-null?
|
||||
(lambda (pointer)
|
||||
|
||||
Reference in New Issue
Block a user