It's almost too small a change to bother with a PR, but I wanted to make sure others were happy with the approach I took.
Basically, it sets the library name in NM_LOG as a macro, allowing the name to be overridden as a CFLAG if desired. If the macro NM_LOG_NAME isn't defined, it defaults to `"NickelMenu".
This allows reusing the logging code in other libraries without having to change any headers or redefine macros.
It's almost too small a change to bother with a PR, but I wanted to make sure others were happy with the approach I took.
Basically, it sets the library name in
NM_LOG
as a macro, allowing the name to be overridden as a CFLAG if desired. If the macroNM_LOG_NAME
isn't defined, it defaults to `"NickelMenu".This allows reusing the logging code in other libraries without having to change any headers or redefine macros.