mirror of
https://github.com/nineties/planckforth
synced 2025-01-13 08:01:10 +01:00
Add abort
This commit is contained in:
parent
f3acb2f93f
commit
8c0cc0abf8
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue