Keep reference to mrb_context from env; fix #3619

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-04-22 14:35:36 +09:00
parent 3b0a36d399
commit 5513fcee22
6 changed files with 35 additions and 19 deletions
+4 -1
View File
@@ -18,8 +18,11 @@ MRB_BEGIN_DECL
struct REnv {
MRB_OBJECT_HEADER;
mrb_value *stack;
mrb_sym mid;
ptrdiff_t cioff;
union {
mrb_sym mid;
struct mrb_context *c;
} cxt;
};
#define MRB_SET_ENV_STACK_LEN(e,len) (e)->flags = (unsigned int)(len)