2 ms·
The idea is to get the location of the caller without using a macro. D just uses __LINE__, because it hasn't got a preprocessor so the compiler can resolve the
by mhh__ 6y ago
The idea is to get the location of the caller without using a macro.
D just uses __LINE__, because it hasn't got a preprocessor so the compiler can resolve the token properly.
The implementation of that is at https://github.com/dlang/dmd/blob/v2.094.2/src/dmd/expression.d#L6782 https://github.com/dlang/dmd/blob/v2.094.2/src/dmd/expressio...