Evaluating __FILE__ and __LINE__ of caller?

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Mar 2 18:50:44 PST 2012


Ah yeah, I forgot about those.
int opIndex(int x, int line = __LINE__, string file = __FILE__)

Tada. I overcomplicated.


More information about the Digitalmars-d-learn mailing list