Unified target_class and env of mrb_callinfo

If there is `env`, `env->c` means `target_class`.
This commit is contained in:
dearblue
2021-01-10 10:20:01 +09:00
parent b210cfa34e
commit 58e9442737
15 changed files with 116 additions and 55 deletions
+4 -2
View File
@@ -152,12 +152,14 @@ typedef struct {
mrb_sym mid;
const struct RProc *proc;
mrb_value *stackent;
struct REnv *env;
const mrb_code *pc; /* return address */
const mrb_code *err; /* error position */
int16_t argc;
int16_t acc;
struct RClass *target_class;
union {
struct REnv *env;
struct RClass *target_class;
} u;
} mrb_callinfo;
enum mrb_fiber_state {