--- gforth/debugs.fs 2004/05/14 17:09:22 1.10 +++ 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 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,11 +52,14 @@ 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 ; -interpret/compile: ~~ \ gforth tilde-tilde + 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}.