August 17, 2013 how to get (absolute) file path from ModuleInfo? how to get include search path? | ||||
---|---|---|---|---|
| ||||
Attachments:
| 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) |
Copyright © 1999-2021 by the D Language Foundation