Added custom macro definition for __FILE_NAME__ in sys/log.h.
This macro is undefined on the following compiler:
GCC < 12
MSVC
For this reason the patch implements a custom macro which retrieves at runtime the last path segment of the entire file path.
This method should work for both Linux and Windows.
Handling of non Windows or Linux compilers is not supported (BSD, ....)
@SirTalksalot75 please verify correct filename output on windows.
Added custom macro definition for
__FILE_NAME__
insys/log.h
.This macro is undefined on the following compiler:
GCC
< 12MSVC
For this reason the patch implements a custom macro which retrieves at runtime the last path segment of the entire file path. This method should work for both Linux and Windows. Handling of non Windows or Linux compilers is not supported (BSD, ....) @SirTalksalot75 please verify correct filename output on windows.