www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - how to get (absolute) file path from ModuleInfo? how to get include

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)
Aug 17 2013