Hello
For my system message logging tool, I'm trying to write something equivalent to what I'm used to in C
the define :
#define SYSLOG(msg) sys_log (msg, __FILE__, __LINE__, ...)
and the call :
SYSLOG ('my message')
thus __FILE__, __LINE__ are automatically handled with good values.
In Pascal of course, for the moment, I can write something like :
sys_log (msg, {$I %FILE%}, {$I %LINE%}, ...)
but for each log call, i had to add always the same directives {$I %FILE%}, {$I %LINE%}, ...)
How can I simplify this ?