mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Make mrb_codedump_all() to print type of Proc.
This commit is contained in:
+9
-1
@@ -258,7 +258,15 @@ codedump(mrb_state *mrb, mrb_irep *irep)
|
||||
break;
|
||||
|
||||
case OP_LAMBDA:
|
||||
printf("OP_LAMBDA\tR%d\tI(%+d)\t%d", GETARG_A(c), GETARG_b(c)+1, GETARG_c(c));
|
||||
printf("OP_LAMBDA\tR%d\tI(%+d)\t", GETARG_A(c), GETARG_b(c)+1);
|
||||
switch (GETARG_c(c)) {
|
||||
case OP_L_METHOD:
|
||||
printf("method"); break;
|
||||
case OP_L_BLOCK:
|
||||
printf("block"); break;
|
||||
case OP_L_LAMBDA:
|
||||
printf("lambda"); break;
|
||||
}
|
||||
print_lv(mrb, irep, c, RA);
|
||||
break;
|
||||
case OP_RANGE:
|
||||
|
||||
Reference in New Issue
Block a user