How to pass Compile Time info to source files

UDW via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Aug 27 20:05:25 PDT 2016


On Sunday, 28 August 2016 at 02:51:13 UTC, Adam D. Ruppe wrote:
> The filename passed to the compiler is easy: __FILE__ works in 
> D too, and you can just strip off extra path info with ordinary 
> functions (like std.path's basename or dirname functions).

Thanks Adam. Worked like a charm.


More information about the Digitalmars-d-learn mailing list