| defer printdebugdata ( -- ) \ gforth print-debug-data |
defer printdebugdata ( -- ) \ gforth print-debug-data |
| ' .s IS printdebugdata |
' .s IS printdebugdata |
| defer .debugline ( nfile nline -- ) \ gforth print-debug-line |
defer .debugline ( nfile nline -- ) \ gforth print-debug-line |
| |
\G Print the source code location indicated by @var{nfile nline}, and |
| |
\G additional debugging information; the default @code{.debugline} |
| |
\G prints the additional information with @code{printdebugdata}. |
| |
|
| : (.debugline) ( nfile nline -- ) |
: (.debugline) ( nfile nline -- ) |
| cr .sourcepos ." :" |
cr .sourcepos ." :" |
| |
|
| ' (.debugline) IS .debugline |
' (.debugline) IS .debugline |
| |
|
| : ~~ ( compilation -- ; run-time -- ) \ gforth tilde-tilde |
:noname ( -- ) |
| compile-sourcepos POSTPONE .debugline ; immediate |
current-sourcepos .debugline ; |
| |
:noname ( compilation -- ; run-time -- ) |
| |
compile-sourcepos POSTPONE .debugline ; |
| |
interpret/compile: ~~ \ gforth tilde-tilde |
| |
\G Prints the source code location of the @code{~~} and the stack |
| |
\G contents with @code{.debugline}. |
| |
|