summaryrefslogtreecommitdiff
path: root/src/vim9.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-09-16 16:15:07 +0200
committerBram Moolenaar <Bram@vim.org>2021-09-16 16:15:07 +0200
commit1a7ee4dd115329052670d7af176341bd09c9dc5a (patch)
tree8cd6b11b8a665721275262c26f20a20065fad415 /src/vim9.h
parentee2cbcd99c54d7c4a3ccfaf0cd5ddeb1369a844e (diff)
downloadvim-git-1a7ee4dd115329052670d7af176341bd09c9dc5a.tar.gz
patch 8.2.3442: Vim9: || and && are not handled at compile timev8.2.3442
Problem: Vim9: || and && are not handled at compile time when possible. Solution: When using constants generate fewer instructions.
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim9.h b/src/vim9.h
index 66fc6cc39..cffa71b38 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -221,6 +221,7 @@ typedef struct {
typedef enum {
JUMP_ALWAYS,
+ JUMP_NEVER,
JUMP_IF_FALSE, // pop and jump if false
JUMP_AND_KEEP_IF_TRUE, // jump if top of stack is truthy, drop if not
JUMP_AND_KEEP_IF_FALSE, // jump if top of stack is falsy, drop if not