how to get (absolute) file path from ModuleInfo? how to get include search path?

Timothee Cour thelastmammoth at gmail.com
Sat Aug 17 16:50:32 PDT 2013


Additionally, is there a way to get:
* the absolute path of __FILE__ at the time the file was compiled (the
compiler knows it)
* the current directory in which the compiler compiled that file



On Sat, Aug 17, 2013 at 1:26 PM, Timothee Cour <thelastmammoth at gmail.com>wrote:

> I'd like to redefine 'void _d_assertm(ModuleInfo* m, uint line){...}' to
> print more informative message with full path to module; right now m.name just
> shows module name.
>
> Is the only way to manually search through include paths until it is found
> ? That seems silly because the compiler knows it already.
>
> Furthermore, is there a way to get include path (the -I given to dmd,
> including the standard libs)? (ideally it should be a __traits)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20130817/d27b17b9/attachment-0001.html>


More information about the Digitalmars-d-learn mailing list