Is there a way to get line and file info at compile time?

For logging purposes, I would like to access the current file and line. Is there a macro or something in the standard library for this ?

1 Like

Yes, use file!() and line!().


To add to that, there is also column! to access the location in the line.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.