diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-02-26 12:51:03 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-03-04 15:26:17 +0100 |
commit | 2ba224e1526681c1a0b1b2b095b1ef2b0874db48 (patch) | |
tree | abc74351fbabb67aa4c68db9996e40cf6a87cff5 /src/nvim/ui.c | |
parent | 6cab36e5b7b0d741abe6c5a7c0e20bad30361034 (diff) | |
download | rneovim-2ba224e1526681c1a0b1b2b095b1ef2b0874db48.tar.gz rneovim-2ba224e1526681c1a0b1b2b095b1ef2b0874db48.tar.bz2 rneovim-2ba224e1526681c1a0b1b2b095b1ef2b0874db48.zip |
refactor(log): reduce compile time LOG_LEVEL granularity
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index ce1a57350a..45959b7b67 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -63,9 +63,7 @@ static int pending_has_mouse = -1; static Array call_buf = ARRAY_DICT_INIT; -#if MIN_LOG_LEVEL > LOGLVL_DBG -# define ui_log(funname) -#else +#ifdef NVIM_LOG_DEBUG static size_t uilog_seen = 0; static const char *uilog_last_event = NULL; @@ -89,6 +87,8 @@ static void ui_log(const char *funname) uilog_last_event = funname; } } +#else +# define ui_log(funname) #endif // UI_CALL invokes a function on all registered UI instances. |