From 4506d9110b4448ed0fb8c7ea5d1cb4a644801336 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Sat, 5 Oct 2019 19:12:55 +0200 Subject: [PATCH] Rename device functions --- examples/hello.scm | 4 ++-- irrlicht.scm | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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)) -- 2.39.5