Add abort

This commit is contained in:
Koichi Nakamura 2021-01-05 21:53:31 +09:00
parent f3acb2f93f
commit 8c0cc0abf8

View file

@ -1311,6 +1311,8 @@ decimal
-71 s" READ-LINE" def-error READ-LINE-ERROR
-75 s" WRITE-FILE" def-error WRITE-FILE-ERROR
: abort ABORTED-ERROR throw ;
( === Dump of data stack === )
: .s ( -- )
sp0 sp@ - cell- cell / ( depth of the stack )
@ -1852,7 +1854,7 @@ variable codegen-target
then
else
." Unknown option: " type cr
drop ABORTED-ERROR throw
abort
then
repeat
;