mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-19 09:28:10 +03:00
Merge pull request #531 from jacereda/abort
Use abort() for assertions.
This commit is contained in:
commit
85e1983658
@ -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))))
|
||||
|
@ -27,5 +27,5 @@
|
||||
(register signal-int Int "SIGINT")
|
||||
(register signal-segv Int "SIGSEGV")
|
||||
(register signal-term Int "SIGTERM")
|
||||
(register abort (Fn [] ()) "abort")
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user