--- gforth/debugs.fs 2005/12/31 15:46:08 1.13 +++ gforth/debugs.fs 2007/12/31 17:34:58 1.17 @@ -1,6 +1,6 @@ \ Simple debugging aids -\ Copyright (C) 1995,1997,1999,2002,2003,2004,2005 Free Software Foundation, Inc. +\ Copyright (C) 1995,1997,1999,2002,2003,2004,2005,2006,2007 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -52,10 +52,13 @@ defer .debugline ( nfile nline -- ) \ gf ' (.debugline) IS .debugline +: .debugline-stderr ( nfile nline -- ) + ['] .debugline stderr outfile-execute ; + :noname ( -- ) - current-sourcepos .debugline ; + current-sourcepos .debugline-stderr ; :noname ( compilation -- ; run-time -- ) - compile-sourcepos POSTPONE .debugline ; + compile-sourcepos POSTPONE .debugline-stderr ; interpret/compile: ~~ ( -- ) \ gforth tilde-tilde \G Prints the source code location of the @code{~~} and the stack \G contents with @code{.debugline}.