*: Replace did_throw checks with current_exception checks

Removes obsolete did_throw after that.
This commit is contained in:
ZyX
2018-03-25 15:13:05 +03:00
parent 79b4b6fc86
commit 201a4ef11c
5 changed files with 209 additions and 246 deletions

View File

@@ -317,17 +317,10 @@ EXTERN int do_profiling INIT(= PROF_NONE); /* PROF_ values */
/*
* The exception currently being thrown. Used to pass an exception to
* a different cstack. Also used for discarding an exception before it is
* caught or made pending. Only valid when did_throw is TRUE.
* caught or made pending.
*/
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.
*/
// 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()
* must be propagated to the cstack of the previously called do_cmdline().