mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Revert "Simplify rescue stack management; ref #3683"
This reverts commiteb5a606fe2and079f310fbc. The rescue stack works differently from ensure stack, so the change caused #3686 and #3688. It might take long to solve the problems, so that I would revert the changes for now. Fix #3688
This commit is contained in:
+2
-2
@@ -112,7 +112,7 @@ typedef struct {
|
||||
struct RProc *proc;
|
||||
mrb_value *stackent;
|
||||
int nregs;
|
||||
int rpos;
|
||||
int ridx;
|
||||
int epos;
|
||||
struct REnv *env;
|
||||
mrb_code *pc; /* return address */
|
||||
@@ -141,7 +141,7 @@ struct mrb_context {
|
||||
mrb_callinfo *cibase, *ciend;
|
||||
|
||||
mrb_code **rescue; /* exception handler stack */
|
||||
int rsize, ridx;
|
||||
int rsize;
|
||||
struct RProc **ensure; /* ensure handler stack */
|
||||
int esize, eidx;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user