Merge pull request #531 from jacereda/abort

Use abort() for assertions.
This commit is contained in:
Erik Svedäng 2019-09-02 10:21:34 +02:00 committed by GitHub
commit 85e1983658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -54,4 +54,4 @@ immediately, raising a `SIGABRT` if it fails.")
()
(list 'do
(list 'println* (list 'fmt "Assertion '%s' failed at line %d, column %d in file %s" (str expr) (line) (column) (file)))
'(System.exit 1))))
'(System.abort))))

View File

@ -27,5 +27,5 @@
(register signal-int Int "SIGINT")
(register signal-segv Int "SIGSEGV")
(register signal-term Int "SIGTERM")
(register abort (Fn [] ()) "abort")
)