mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
All our diagnostic macros required a struct notcurses from which to extract the loglevel. Eliminate this parameter, and update all caller sites. Add a library-wide (but not exported) loglevel variable, and set it from both notcurses_core_init() and ncdirect_core_init(). Add two new direct mode flags, NCDIRECT_OPTION_VERBOSE and NCDIRECT_OPTION_VERY_VERBOSE, mapping them to NCLOGLEVEL_WARNING and NCLOGLEVEL_INFO respectively. Closes #1690.