version 1.13, 2005/12/31 15:46:08
|
version 1.15, 2006/12/31 13:39:12
|
Line 1
|
Line 1
|
\ Simple debugging aids |
\ 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 Free Software Foundation, Inc. |
|
|
\ This file is part of Gforth. |
\ This file is part of Gforth. |
|
|
Line 52 defer .debugline ( nfile nline -- ) \ gf
|
Line 52 defer .debugline ( nfile nline -- ) \ gf
|
|
|
' (.debugline) IS .debugline |
' (.debugline) IS .debugline |
|
|
|
: .debugline-stderr ( nfile nline -- ) |
|
stderr >outfile .debugline outfile< ; |
|
|
:noname ( -- ) |
:noname ( -- ) |
current-sourcepos .debugline ; |
current-sourcepos .debugline-stderr ; |
:noname ( compilation -- ; run-time -- ) |
:noname ( compilation -- ; run-time -- ) |
compile-sourcepos POSTPONE .debugline ; |
compile-sourcepos POSTPONE .debugline-stderr ; |
interpret/compile: ~~ ( -- ) \ gforth tilde-tilde |
interpret/compile: ~~ ( -- ) \ gforth tilde-tilde |
\G Prints the source code location of the @code{~~} and the stack |
\G Prints the source code location of the @code{~~} and the stack |
\G contents with @code{.debugline}. |
\G contents with @code{.debugline}. |