full path to source file __FILE__

DigitalDesigns DigitalDesigns at gmail.com
Tue May 29 21:47:31 UTC 2018


On Tuesday, 29 May 2018 at 21:41:37 UTC, Ali Çehreli wrote:
> On 05/29/2018 02:34 PM, DigitalDesigns wrote:
>  > auto x(string fp = __FULL_FILE_PATH__)()
>> {
>>     pragma(msg, fp);
>> }
>> 
>> ?
>
> __FILE_FULL_PATH__
>
>   https://dlang.org/spec/expression#specialkeywords
>
> Ali

Lol, thanks:




More information about the Digitalmars-d-learn mailing list