diff options
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -58,9 +58,9 @@ have a closing bracket: ). ### `(0handler) ( -- )` the very early error handler, which simply quits the program. -### `(abort") ( ? -- )` +### `(abort") ( a u -- )` perform the runtime actions of `abort"`: -check for non-zero and print and abort, or do nothing. +print string to error and abort. ### `(create) ( -- )` the default behaviour of a word made by `create`, @@ -282,8 +282,8 @@ duplicate the two topmost values on the stack. call the error handler (the address of which is in the variable `handler`) -### `abort" ( ? -- ) IMMEDIATE COMPILE-ONLY` -if `?` is non-zero, write the message that follows (terminated by `"`) +### `abort" ( -- ) IMMEDIATE COMPILE-ONLY` +write the message that follows (terminated by `"`) to standard out then call the error handler. (the address of which is in the variable `handler`) @@ -836,3 +836,4 @@ but it diverges in a few notable places: (128 bit integer arithmetic does not seem all that useful to me) - the dynamic allocation `free` word requires a length. this is because munmap requires a length. +- `abort"` does not take a flag and always executes. |
