Next: , Up: Debugging   [Contents][Index]

14.21.1 __LINE__ and __FILE__

When printing traces it is often useful to include a description of the location of the trace. The poke compiler provides two builtins for this purpose.


Expands to an unsigned 64-bit integer containing the current line of the program being compiled.


Expands to a string with the name of the file currently being compiled. If the program is read from the standard input (like in the REPL) then this is "<stdin>".