--- gforth/errors.fs 1998/05/13 16:47:22 1.5 +++ gforth/errors.fs 2000/09/23 15:05:59 1.10 @@ -1,6 +1,6 @@ \ Load in error strings -\ Copyright (C) 1995-1997 Free Software Foundation, Inc. +\ Copyright (C) 1995,1996,1997,1998,1999 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -29,11 +29,11 @@ variable next-exception -2048 next-exception ! -: exception ( addr u -- n ) - \G @var{n} is a previously unused THROW value in the range - \G {-4095...-256}. Consecutive calls to EXCEPTION return +: exception ( addr u -- n ) \ exception- gforth + \G @var{n} is a previously unused @code{throw} value in the range + \G (-4095...-256). Consecutive calls to @code{exception} return \G consecutive decreasing numbers. Gforth uses the string - \G @var{addr u} as error message. + \G @var{addr u} as an error message. next-exception @ errstring next-exception @ -1 next-exception +! ; @@ -44,7 +44,7 @@ decimal -3 s" Stack overflow" rot errstring -4 s" Stack underflow" rot errstring -5 s" Return stack overflow" rot errstring --6 s" Return stack undeflow" rot errstring +-6 s" Return stack underflow" rot errstring -7 s" Do-loops nested too deeply" rot errstring -8 s" Dictionary overflow" rot errstring -9 s" Invalid memory address" rot errstring