version 1.18, 2007/12/31 18:40:23
|
version 1.20, 2009/02/20 19:32:35
|
Line 49 defer .debugline ( nfile nline -- ) \ gf
|
Line 49 defer .debugline ( nfile nline -- ) \ gf
|
printdebugdata |
printdebugdata |
cr ; |
cr ; |
|
|
|
stderr value debug-fid ( -- fid ) |
|
\G (value) Debugging output prints to this file |
|
|
' (.debugline) IS .debugline |
' (.debugline) IS .debugline |
|
|
: .debugline-stderr ( nfile nline -- ) |
: .debugline-directed ( nfile nline -- ) |
['] .debugline stderr outfile-execute ; |
['] .debugline debug-fid outfile-execute ; |
|
|
:noname ( -- ) |
:noname ( -- ) |
current-sourcepos .debugline-stderr ; |
current-sourcepos .debugline-directed ; |
:noname ( compilation -- ; run-time -- ) |
:noname ( compilation -- ; run-time -- ) |
compile-sourcepos POSTPONE .debugline-stderr ; |
compile-sourcepos POSTPONE .debugline-directed ; |
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}. |