Change throw code for abort quote from -1 to -2.
authorburkphil <burkphil@b0a0988d-7f52-0410-8c73-4f6cdee1a2cf>
Tue, 6 Dec 2011 18:57:15 +0000 (18:57 +0000)
committerburkphil <burkphil@b0a0988d-7f52-0410-8c73-4f6cdee1a2cf>
Tue, 6 Dec 2011 18:57:15 +0000 (18:57 +0000)
fth/misc1.fth
fth/system.fth

index 3a3a60a..373e495 100644 (file)
@@ -36,7 +36,9 @@ decimal
 \r
 : (ABORT")  ( flag $message -- )\r
     swap\r
 \r
 : (ABORT")  ( flag $message -- )\r
     swap\r
-    IF count type cr abort\r
+    IF\r
+       count type cr\r
+       err_abortq throw\r
     ELSE drop\r
     THEN\r
 ;\r
     ELSE drop\r
     THEN\r
 ;\r
index a7dd0d5..5cf36f8 100644 (file)
 \r
 \ Error codes defined in ANSI Exception word set.\r
 : ERR_ABORT         -1 ;   \ general abort\r
 \r
 \ Error codes defined in ANSI Exception word set.\r
 : ERR_ABORT         -1 ;   \ general abort\r
+: ERR_ABORTQ        -2 ;   \ for abort"\r
 : ERR_EXECUTING    -14 ;   \ compile time word while not compiling\r
 : ERR_PAIRS        -22 ;   \ mismatch in conditional\r
 : ERR_DEFER       -258 ;  \ not a deferred word\r
 : ERR_EXECUTING    -14 ;   \ compile time word while not compiling\r
 : ERR_PAIRS        -22 ;   \ mismatch in conditional\r
 : ERR_DEFER       -258 ;  \ not a deferred word\r
@@ -809,7 +810,8 @@ auto.init
 \ Now that we can load from files, load remainder of dictionary.\r
 \r
 trace-include on\r
 \ Now that we can load from files, load remainder of dictionary.\r
 \r
 trace-include on\r
-trace-stack on\r
+\ Turn this OFF if you do not want to see the contents of the stack after each entry.\r
+trace-stack off\r
 \r
 include loadp4th.fth\r
 \r
 \r
 include loadp4th.fth\r
 \r