summaryrefslogtreecommitdiff
path: root/chickadee
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-08-21 10:45:35 -0400
committerDavid Thompson <dthompson2@worcester.edu>2018-08-23 08:02:20 -0400
commit0e67d24f8d155e0a0864a0083fb9f8e622f95ee6 (patch)
tree4c9859c10a5c714c19879c94976e00ae8cf196f8 /chickadee
parente61e1f84c10934221154d312cc47758be2e90133 (diff)
Add default game loop error handler.
* chickadee.scm (default-error-handler): New procedure. (run-game): Set default value for 'error' arg to 'default-error-handler'. * chickadee/sdl.scm (run-game/sdl): Ditto.
Diffstat (limited to 'chickadee')
-rw-r--r--chickadee/sdl.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/sdl.scm b/chickadee/sdl.scm
index bb8d5e3..b00e30e 100644
--- a/chickadee/sdl.scm
+++ b/chickadee/sdl.scm
@@ -85,7 +85,7 @@
(controller-press (const #t))
(controller-release (const #t))
(controller-move (const #t))
- (error (const #t)))
+ (error default-error-handler))
(sdl-init)
(false-if-exception (mixer-init))
(open-audio)