Re: [fpc-pascal] Source file macro

2019-06-21 Thread Markus Greim
Great, looking for this "Macro" for 15+ years Kind Regards Markus --- original message --- On June 19, 2019, 5:35 PM GMT+2 ga...@poczta.onet.pl wrote: W dniu 2019-06-19 o 17:10, Ryan Joseph pisze: >> >> Oh I see now. Strange syntax, never saw that before. Can you get the full >> path inst

Re: [fpc-pascal] Source file macro

2019-06-19 Thread gabor
W dniu 2019-06-19 o 17:10, Ryan Joseph pisze: Oh I see now. Strange syntax, never saw that before. Can you get the full path instead of just the name? Regards, Ryan Joseph Unfortunately, just the name. But it's a good idea to be able to have a full path. You can get full listof dire

Re: [fpc-pascal] Source file macro

2019-06-19 Thread Ryan Joseph
> On Jun 19, 2019, at 10:59 AM, gabor wrote: > > try > > writeln({$I %FILE%}); > > it really works ;) > > Regards, > Michał Oh I see now. Strange syntax, never saw that before. Can you get the full path instead of just the name? Regards, Ryan Joseph __

Re: [fpc-pascal] Source file macro

2019-06-19 Thread gabor
try writeln({$I %FILE%}); it really works ;) Regards, Michał W dniu 2019-06-19 o 16:54, Ryan Joseph pisze: On Jun 19, 2019, at 10:52 AM, Виктор Матузенко wrote: {$I %FILE%} ? Sorry I mean something like: {$macro on} writeln(FPC_SOURCE_FILE); Looking for a string I can use. Regards,

Re: [fpc-pascal] Source file macro

2019-06-19 Thread Ryan Joseph
> On Jun 19, 2019, at 10:52 AM, Виктор Матузенко wrote: > > {$I %FILE%} ? Sorry I mean something like: {$macro on} writeln(FPC_SOURCE_FILE); Looking for a string I can use. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@list

Re: [fpc-pascal] Source file macro

2019-06-19 Thread Виктор Матузенко
{$I %FILE%} ? ср, 19 июн. 2019 г. в 17:49, Ryan Joseph : > Is there a macro for the path of the source file being compiled? I could > swear there was something like FPC_SOURCE_FILE but I can’t find it now. > > Regards, > Ryan Joseph > > ___ > fp

[fpc-pascal] Source file macro

2019-06-19 Thread Ryan Joseph
Is there a macro for the path of the source file being compiled? I could swear there was something like FPC_SOURCE_FILE but I can’t find it now. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.free