aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_eval.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-04-25 04:12:47 +0200
committerGitHub <noreply@github.com>2022-04-24 20:12:47 -0600
commitc58219413514caf035ac52eb85b84b1ff31d4722 (patch)
tree1db3c26ab8a0c05653213736742f8fd6626b9c70 /src/nvim/ex_eval.c
parent933274c438107adadde5ff854340ed1fae18d3fe (diff)
downloadrneovim-c58219413514caf035ac52eb85b84b1ff31d4722.tar.gz
rneovim-c58219413514caf035ac52eb85b84b1ff31d4722.tar.bz2
rneovim-c58219413514caf035ac52eb85b84b1ff31d4722.zip
refactor: add pure attribute to pure functions (#18165)
This will allow the compilers that support the pure attribute to make further optimizations.
Diffstat (limited to 'src/nvim/ex_eval.c')
-rw-r--r--src/nvim/ex_eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/ex_eval.c b/src/nvim/ex_eval.c
index f4aaab5c43..d6ce15f271 100644
--- a/src/nvim/ex_eval.c
+++ b/src/nvim/ex_eval.c
@@ -129,6 +129,7 @@ int should_abort(int retcode)
/// to find finally clauses to be executed, and that some errors in skipped
/// commands are still reported.
int aborted_in_try(void)
+ FUNC_ATTR_PURE
{
// This function is only called after an error. In this case, "force_abort"
// determines whether searching for finally clauses is necessary.