[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gforth] Deactivate the backtrace message?
From: |
Anton Ertl |
Subject: |
Re: [gforth] Deactivate the backtrace message? |
Date: |
Thu, 17 Dec 2015 13:42:57 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Wed, Dec 16, 2015 at 08:51:52PM +0100, Marcos Cruz wrote:
> And
> anyway this is a command line tool intended to be used in tool chains,
> concatenated commands, Makefile... (so `quit` or `bye` are not an
> option, because the Forth system must exit with an error).
1 (BYE)
Maybe have a word
: typecr ( c-addr u -- )
type cr ;
: ?error-exit ( f c-addr u -- )
rot if
['] typecr stderr outfile-execute 1 (bye)
then 2drop ;
Used as in
... ( f ) s" Wrong size for the card type." ?error-exit
- anton