mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 07:41:27 +00:00
refactor: add pure attribute to pure functions
This will allow compilers that support the pure attribute to make further optimizations to functions.
This commit is contained in:
@@ -84,6 +84,7 @@ bool buf_updates_register(buf_T *buf, uint64_t channel_id, BufUpdateCallbacks cb
|
||||
}
|
||||
|
||||
bool buf_updates_active(buf_T *buf)
|
||||
FUNC_ATTR_PURE
|
||||
{
|
||||
return kv_size(buf->update_channels) || kv_size(buf->update_callbacks);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user