Logging function name, line, file...

jaro jarol1 at seznam.cz
Tue Mar 18 06:01:01 PDT 2008


It's a pitty __FUNCTION__ is not supported, only __FILE__ and __LINE__. Logging file and line without function name is almost useless (who knows what line 2935 does ...).

__FUNCTION__ in C and C++ was really nice because it was platform independent and worked both in debug and release mode so programs could also log in release mode.

Your code will work, but only for windows and introduces additional overhead. __FUNCTION__ in C++ was without overhead.




More information about the Digitalmars-d mailing list