pgaskin / NickelMenu

The easiest way to launch scripts, change settings, and run actions on Kobo e-readers.
https://pgaskin.net/NickelMenu
MIT License
591 stars 32 forks source link

Use macro for setting library name in log #41

Closed shermp closed 4 years ago

shermp commented 4 years ago

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.