Use abort() for assertions.

This commit is contained in:
Jorge Acereda 2019-07-29 21:48:20 +02:00
parent 4f9c1500f2
commit 554b9df849
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")
)