@joho:
Did you mean like the name of the procedure or function ?
That already exists in trunk, see here (https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=30873) it is used with %CURRENTROUTINE%
Well... line is already present (twofold), file (unit name) and class could probably be solved with rtti. Procedure/function name as well as line number can be obtained at runtime as well.
Now, car and drink.... That would be an interesting statistic... what was the programmer drinking and/or eating at the time the code was implemented and what vehicle (if any) was used during that process. That would give some managers a severe headache :D
Well... line is already present (twofold), file (unit name) and class could probably be solved with rtti. Procedure/function name as well as line number can be obtained at runtime as well.
Now, car and drink.... That would be an interesting statistic... what was the programmer drinking and/or eating at the time the code was implemented and what vehicle (if any) was used during that process. That would give some managers a severe headache :D
your_hello_code.inc(1,1) Error: Illegal expression
your_hello_code.inc(1,11) Fatal: Syntax error, ";" expected but "identifier HELLO" found
Fatal: Compilation aborted
Read the help, if not a known builtin, it is assumed to be an environment variable.Thank you for reminding me to that.
Make sure your drinking status and vehicle choice are correctly entered into the relevant environment variables. One could create a small lazarus extension to do so and update them before executing the compiler to make it easier.You are right, i did not considered that. That could indeed work, although perhaps a bit clumsy because eating and traveling habits changes during a hard-days work.