*: Make sure that !did_throw implies !current_exception

Fixes #7876
This commit is contained in:
ZyX
2018-01-21 03:27:48 +03:00
parent f8d2aef4f2
commit 79b4b6fc86
5 changed files with 44 additions and 18 deletions

View File

@@ -325,7 +325,8 @@ EXTERN except_T *current_exception;
* did_throw: An exception is being thrown. Reset when the exception is caught
* or as long as it is pending in a finally clause.
*/
EXTERN int did_throw INIT(= FALSE);
// FIXME: Replace did_throw checks with current_exception checks.
EXTERN int did_throw INIT(= false);
/*
* need_rethrow: set to TRUE when a throw that cannot be handled in do_cmdline()