From: Javier Sancho Date: Sat, 5 Oct 2019 17:12:55 +0000 (+0200) Subject: Rename device functions X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=4506d9110b4448ed0fb8c7ea5d1cb4a644801336;p=guile-irrlicht.git Rename device functions --- diff --git a/examples/hello.scm b/examples/hello.scm index cee3c64..11c9bb8 100644 --- a/examples/hello.scm +++ b/examples/hello.scm @@ -26,6 +26,6 @@ (set-window-caption! device "Hello World!") -(while (run? device)) +(while (device-run? device)) -(drop! device) +(device-drop! device) diff --git a/irrlicht.scm b/irrlicht.scm index 4633241..5b405e3 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -28,8 +28,8 @@ get-video-driver get-scene-manager set-window-caption! - run? - drop!)) + device-run? + device-drop!)) (define* (create-device #:optional (device-type 'software) @@ -61,8 +61,8 @@ (define (set-window-caption! device text) (ffi:set-window-caption device (string->pointer text))) -(define (run? device) +(define (device-run? device) (if (> (ffi:run device) 0) #t #f)) -(define (drop! device) +(define (device-drop! device) (if (> (ffi:drop device) 0) #t #f))