[fpc-pascal] Source file macro

gabor gabor at poczta.onet.pl
Wed Jun 19 16:59:17 CEST 2019


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, Виктор Матузенко <vitek03 at gmail.com> 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 at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> 


More information about the fpc-pascal mailing list