aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_eval_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ex_eval_defs.h')
-rw-r--r--src/nvim/ex_eval_defs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/ex_eval_defs.h b/src/nvim/ex_eval_defs.h
index 6713cdb549..442e4581cc 100644
--- a/src/nvim/ex_eval_defs.h
+++ b/src/nvim/ex_eval_defs.h
@@ -118,4 +118,14 @@ struct cleanup_stuff {
except_T *exception; ///< exception value
};
+/// Exception state that is saved and restored when calling timer callback
+/// functions and deferred functions.
+typedef struct exception_state_S exception_state_T;
+struct exception_state_S {
+ except_T *estate_current_exception;
+ bool estate_did_throw;
+ bool estate_need_rethrow;
+ int estate_trylevel;
+};
+
#endif // NVIM_EX_EVAL_DEFS_H