(let* ((createDevice (get-irrlicht-proc "createDevice"))
(device (createDevice device-type window-size bits fullscreen stencilbuffer
vsync receiver)))
- (cond ((null-object? device)
- (error "In procedure create-device: Device cannot be created"))
- (else
- device))))
+ (if (null-object? device)
+ (error "In procedure create-device: Device cannot be created")
+ device)))
(define-method (get-cursor-control (device <irrlicht-device>))
(let ((getCursorControl (get-irrlicht-proc "getCursorControl" device)))
(getTimer device)))
(define-method (get-video-driver (device <irrlicht-device>))
- (let ((getVideoDriver (get-irrlicht-proc "getVideoDriver" device)))
- (getVideoDriver device)))
+ (let* ((getVideoDriver (get-irrlicht-proc "getVideoDriver" device))
+ (driver (getVideoDriver device)))
+ (if (null-object? driver)
+ (error "In procedure get-video-driver: Driver cannot be created")
+ driver)))
(define-method (is-window-active? (device <irrlicht-device>))
(let ((isWindowActive (get-irrlicht-proc "isWindowActive" device)))