Commit 839d801c authored by takkaw's avatar takkaw

display BasicObject information in mirb

parent 5aafbca0
...@@ -261,6 +261,9 @@ main(void) ...@@ -261,6 +261,9 @@ main(void)
else { else {
/* no */ /* no */
printf(" => "); printf(" => ");
if (!mrb_respond_to(mrb,result,mrb_intern(mrb,"inspect"))){
result = mrb_any_to_s(mrb,result);
}
p(mrb, result); p(mrb, result);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment