diff options
author | ZyX <kp-pav@yandex.ru> | 2018-01-21 03:27:48 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2018-03-25 14:50:48 +0300 |
commit | 79b4b6fc86497fcb7b3f986e98cbf03f93b5b082 (patch) | |
tree | 2fcdd5af2b8bf6b05ddab5eb87fcf344ddbda5a2 /src/nvim/api/private/helpers.c | |
parent | f8d2aef4f20887bb5a407b5a34cd5dc29fc6771c (diff) | |
download | rneovim-79b4b6fc86497fcb7b3f986e98cbf03f93b5b082.tar.gz rneovim-79b4b6fc86497fcb7b3f986e98cbf03f93b5b082.tar.bz2 rneovim-79b4b6fc86497fcb7b3f986e98cbf03f93b5b082.zip |
*: Make sure that !did_throw implies !current_exception
Fixes #7876
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r-- | src/nvim/api/private/helpers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index 1115faaeaf..29024a471f 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -47,6 +47,9 @@ typedef struct { /// @param[out] tstate Location where try state should be saved. void try_enter(TryState *const tstate) { + // TODO(ZyX-I): Check whether try_enter()/try_leave() may use + // enter_cleanup()/leave_cleanup(). Or + // save_dbg_stuff()/restore_dbg_stuff(). *tstate = (TryState) { .current_exception = current_exception, .msg_list = (const struct msglist *const *)msg_list, |