Skip to content

Commit

Permalink
add a "preload check" for examples/sharedsystem/setup.xtm
Browse files Browse the repository at this point in the history
it's not a proper aot-able library thing (although that might be nice in the
future) but it should prevent issues with folks accidentally double-evaling the
load command for the sharedsystem setup file
  • Loading branch information
benswift committed Jan 19, 2020
1 parent 7249a42 commit 9f78bec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/sharedsystem/setup.xtm
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@

;;; Code:

(sys:load-preload-check 'sharedsystem-setup)
(define *xtmlib-sharedsystem-setup-loaded* #t)

(sys:load "examples/sharedsystem/midisetup.xtm")
(sys:load "examples/sharedsystem/audiosetup.xtm")

(define *xtmlib-sharedsystem-setup-loaded* #t)

(print-with-colors
'black 'green #t
(print "shared system successfully loaded\n"))

0 comments on commit 9f78bec

Please sign in to comment.