Simplify ensure stack management; fix #3683

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-06-01 17:36:23 +09:00
parent 72b635f7d2
commit 7ff90b52d8
3 changed files with 25 additions and 31 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ typedef struct {
mrb_value *stackent;
int nregs;
int ridx;
int eidx;
int epos;
struct REnv *env;
mrb_code *pc; /* return address */
mrb_code *err; /* error position */
@@ -143,7 +143,7 @@ struct mrb_context {
mrb_code **rescue; /* exception handler stack */
int rsize;
struct RProc **ensure; /* ensure handler stack */
int esize;
int esize, eidx;
enum mrb_fiber_state status;
mrb_bool vmexec;