diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-27 23:24:31 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:20:58 +0900 |
| commit | 00f5ddc9aeeab49d656044d14a03765bd6fdfc53 (patch) | |
| tree | d6e5b08a7b55bfa17a73d94911413f257503b35c /mrbgems/mruby-bin-mirb/tools | |
| parent | dcd3e5907ca830f118bf7b55bbf1b1210a67385d (diff) | |
| download | mruby-00f5ddc9aeeab49d656044d14a03765bd6fdfc53.tar.gz mruby-00f5ddc9aeeab49d656044d14a03765bd6fdfc53.zip | |
Use `mrb_funcall_id()` extensively.
Except for support files e.g. `mruby-test/driver.c`, which are not
target of symbol collection via `rake gensym`.
Diffstat (limited to 'mrbgems/mruby-bin-mirb/tools')
| -rw-r--r-- | mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index 19d0bfc06..ffe22b885 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -104,13 +104,13 @@ p(mrb_state *mrb, mrb_value obj, int prompt) mrb_value val; char* msg; - val = mrb_funcall(mrb, obj, "inspect", 0); + val = mrb_funcall_id(mrb, obj, MRB_SYM(inspect), 0); if (prompt) { if (!mrb->exc) { fputs(" => ", stdout); } else { - val = mrb_funcall(mrb, mrb_obj_value(mrb->exc), "inspect", 0); + val = mrb_funcall_id(mrb, mrb_obj_value(mrb->exc), MRB_SYM(inspect), 0); } } if (!mrb_string_p(val)) { |
