Closed jphartmann closed 8 years ago
The vfwritemsg
function in source module logmsg.c
uses the TRIMLOC
macro (which calls into the trimloc
function defined in source module hscutl.c
) because of a similar __FILE__
macro issue on Windows.
You'll probably have to make an adjustment (fix) to the trimloc
function in source module hscutl.c
to ensure only a source file name and extension is returned.
Thanks, Fish.
Turns out that msglevel emsgloc
provides complete information, so I'll close this.
But:
Is the prefix field too short? When building out-of-source the leading path is inevitable in the
__FILE__
macro, but you could, e.g.,strrchr(__FILE__, '/')
to find just the file name.