diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-03-04 17:18:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-04 17:18:32 +0100 |
commit | bc26f23e5ae49f54b4fbd18f692f300254e454eb (patch) | |
tree | c5bed8b8eb3aaf261197a9713eef8b8cc3e13e35 /src/nvim/ui.c | |
parent | dde5ce46b2e3e77efc27394b946ef49ce565cd95 (diff) | |
parent | 2ba224e1526681c1a0b1b2b095b1ef2b0874db48 (diff) | |
download | rneovim-bc26f23e5ae49f54b4fbd18f692f300254e454eb.tar.gz rneovim-bc26f23e5ae49f54b4fbd18f692f300254e454eb.tar.bz2 rneovim-bc26f23e5ae49f54b4fbd18f692f300254e454eb.zip |
Merge pull request #22415 from bfredl/log_debug
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. |