mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
codedump.c: do not print nameless registers.
This commit is contained in:
+4
-1
@@ -101,7 +101,10 @@ codedump(mrb_state *mrb, const mrb_irep *irep)
|
||||
printf("local variable names:\n");
|
||||
for (i = 1; i < irep->nlocals; ++i) {
|
||||
char const *s = mrb_sym_dump(mrb, irep->lv[i - 1]);
|
||||
printf(" R%d:%s\n", i, s ? s : "");
|
||||
if (s) {
|
||||
printf(" R%d:%s", i, s);
|
||||
}
|
||||
putchar('\n');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user