stumpwm / mahogany

A stumpwm like Wayland compositor
GNU General Public License v2.0
220 stars 12 forks source link

Improve logging disassembly #28

Closed sdilts closed 1 year ago

sdilts commented 1 year ago

Don't use macros for the logging functionality, as the inlined code makes it harder to read disassembler output where the log functions are used. This also means that the log level doesn't need to be known at runtime, but a compiler macro will lookup the metadata at compile time if it is.

Also optimize the log level check by translating between the symbol specifier and the log level integer when the log level is set.