mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
Use abort() for assertions.
This commit is contained in:
parent
4f9c1500f2
commit
554b9df849
@ -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