diff options
| author | take_cheeze <[email protected]> | 2013-12-01 10:38:59 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2013-12-01 10:38:59 +0900 |
| commit | df780ae5e9cb12f527f01ce04137a1ad76c0b1c6 (patch) | |
| tree | e0dc2795d8879a642e55250df2141567a196d8fe /mrbgems/mruby-bin-mirb | |
| parent | 9c6398a444259a82b4ed531323b153bbce03af62 (diff) | |
| download | mruby-df780ae5e9cb12f527f01ce04137a1ad76c0b1c6.tar.gz mruby-df780ae5e9cb12f527f01ce04137a1ad76c0b1c6.zip | |
add mrb_intern_lit for creating symbol from string literal
Diffstat (limited to 'mrbgems/mruby-bin-mirb')
| -rw-r--r-- | mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index 5a4114567..81eef7f82 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -384,7 +384,7 @@ main(int argc, char **argv) } else { /* no */ - if (!mrb_respond_to(mrb, result, mrb_intern(mrb, "inspect", 7))){ + if (!mrb_respond_to(mrb, result, mrb_intern_lit(mrb, "inspect"))){ result = mrb_any_to_s(mrb,result); } p(mrb, result, 1); |
