sbcl.sbcl/loader.lisp
2016-10-05 04:02:54 +03:00

16 lines
477 B
Common Lisp

(defun load-sbcl-file (file)
(labels ((exit-sbcl (code)
#+sbcl (sb-ext:exit :code code)
#+ccl (ccl:quit code)
#+abcl (ext:quit :status code)
#+cmucl (unix:unix-exit code)
#+ecl (si:quit code)
#+clisp (ext:quit code)
(return-from load-sbcl-file)))
(restart-case
(load file)
(abort ()
:report "Abort building SBCL."
(exit-sbcl 1)))
(exit-sbcl 0)))