[fpc-devel] __LINE__ and __FILE__ macros

Marco van de Voort marcov at stack.nl
Fri Apr 29 09:58:08 CEST 2011


In our previous episode, Joerg Schuelke said:
> > Look in the manual under preprocessor $i (include)
> > 
> Thats better then nothing, but if you want to include this information
> in debugging information, and you won't write it again and again you
> will need an expression which is usable inside an macro.

I use an IDE macro to insert a predefined line, and then I just change the
constants I will log. The advantage of that way is that you have full
intellisense to specify the vars to dump, something that is always hard with
a macro.



More information about the fpc-devel mailing list