diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-08 20:53:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-08 20:53:09 +0100 |
commit | 299f3036ec21cc9735846b2e0dfdfc5a78b26c1c (patch) | |
tree | 7301ba49093ef1270255fbb79876c8d77586e258 /src/vim9.h | |
parent | ece0b87c0fb0e35ff4c51f9ba81389f56428e42b (diff) | |
download | vim-git-299f3036ec21cc9735846b2e0dfdfc5a78b26c1c.tar.gz |
patch 8.2.2314: Vim9: returning zero takes two instructionsv8.2.2314
Problem: Vim9: returning zero takes two instructions.
Solution: Add ISN_RETURN_ZERO.
Diffstat (limited to 'src/vim9.h')
-rw-r--r-- | src/vim9.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim9.h b/src/vim9.h index 49103ba55..440de2785 100644 --- a/src/vim9.h +++ b/src/vim9.h @@ -84,6 +84,7 @@ typedef enum { ISN_PCALL, // call partial, use isn_arg.pfunc ISN_PCALL_END, // cleanup after ISN_PCALL with cpf_top set ISN_RETURN, // return, result is on top of stack + ISN_RETURN_ZERO, // Push zero, then return ISN_FUNCREF, // push a function ref to dfunc isn_arg.funcref ISN_NEWFUNC, // create a global function from a lambda function ISN_DEF, // list functions |