diff options
author | ckelsel <ckelsel@hotmail.com> | 2017-08-17 08:20:48 +0800 |
---|---|---|
committer | ckelsel <ckelsel@hotmail.com> | 2017-08-17 08:20:48 +0800 |
commit | 673fc748237345914e0ad584bc4cba997c96a37e (patch) | |
tree | 7f55a3b3dd362fbbc59ff204287a0aae99089e5e /src/nvim/api/private/helpers.h | |
parent | 5d332084e1ca4c29b1ccb90ea44c3b861dac5701 (diff) | |
parent | 5b32bce73c93a64970afe0e92e0a8ba2fed88619 (diff) | |
download | rneovim-673fc748237345914e0ad584bc4cba997c96a37e.tar.gz rneovim-673fc748237345914e0ad584bc4cba997c96a37e.tar.bz2 rneovim-673fc748237345914e0ad584bc4cba997c96a37e.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/nvim/api/private/helpers.h')
-rw-r--r-- | src/nvim/api/private/helpers.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/api/private/helpers.h b/src/nvim/api/private/helpers.h index 159b9d5c2a..87f334ac30 100644 --- a/src/nvim/api/private/helpers.h +++ b/src/nvim/api/private/helpers.h @@ -6,6 +6,7 @@ #include "nvim/api/private/defs.h" #include "nvim/vim.h" #include "nvim/memory.h" +#include "nvim/ex_eval.h" #include "nvim/lib/kvec.h" #define OBJECT_OBJ(o) o @@ -82,6 +83,21 @@ #define api_free_window(value) #define api_free_tabpage(value) +/// Structure used for saving state for :try +/// +/// Used when caller is supposed to be operating when other VimL code is being +/// processed and that “other VimL code” must not be affected. +typedef struct { + except_T *current_exception; + struct msglist *private_msg_list; + const struct msglist *const *msg_list; + int trylevel; + int got_int; + int did_throw; + int need_rethrow; + int did_emsg; +} TryState; + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/private/helpers.h.generated.h" #endif |