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


20.23.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.

__LINE__

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

__FILE__

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>".