X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=irrlicht%2Fforeign.scm;h=9b55633accaf17ad17cdd39077f3cf93896032e9;hb=7aaa8f11f628e04766c229e48124fa41a9da482e;hp=f6e203622f55db18eae8907fce38f3c26533c4dd;hpb=b66897512cbe56969f0a9b2d4043fc8764c35e19;p=guile-irrlicht.git diff --git a/irrlicht/foreign.scm b/irrlicht/foreign.scm index f6e2036..9b55633 100644 --- a/irrlicht/foreign.scm +++ b/irrlicht/foreign.scm @@ -19,8 +19,10 @@ (define-module (irrlicht foreign) + #:use-module (system foreign) #:use-module (irrlicht base) - #:export (get-irrlicht-proc)) + #:export (get-irrlicht-proc + null-object?)) ;; We use a hash table to store foreign irrlicht methods related with their ;; classes @@ -40,3 +42,6 @@ new-proc)) (else proc)))) + +(define (null-object? object) + (eq? (irr-pointer object) %null-pointer))