full path to source file __FILE__

Ali Çehreli acehreli at yahoo.com
Tue May 29 21:41:37 UTC 2018


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


More information about the Digitalmars-d-learn mailing list