Add abort, abort" and start on testing throw values.

This commit is contained in:
Brad Nelson
2023-01-22 12:06:58 -08:00
parent 5c918d91f6
commit f82e423fb4
4 changed files with 32 additions and 0 deletions

View File

@ -60,6 +60,10 @@ variable hld
if cr ." ERROR: " type ." NOT FOUND!" cr -1 throw then ;
' notfound 'notfound !
( Abort )
: abort -1 throw ;
: abort" postpone ." postpone cr -2 aliteral postpone throw ; immediate
( Input )
: raw.s depth 0 max for aft sp@ r@ cells - @ . then next ;
variable echo -1 echo ! variable arrow -1 arrow ! 0 value wascr