diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-06 07:50:34 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-06 07:50:34 +0900 |
| commit | ed1bf9aa809acfaa42deba222968224e6e9d7b3c (patch) | |
| tree | 1f4b2bfb6dd7cb504e71868aac2691b97fa0bffa /mrbgems/mruby-proc-ext | |
| parent | 2e564153acab3baa9967f63fe2c165433d4a4d6c (diff) | |
| download | mruby-ed1bf9aa809acfaa42deba222968224e6e9d7b3c.tar.gz mruby-ed1bf9aa809acfaa42deba222968224e6e9d7b3c.zip | |
introduce mrb_str_new_lit() to create strings from C string litrals
Diffstat (limited to 'mrbgems/mruby-proc-ext')
| -rw-r--r-- | mrbgems/mruby-proc-ext/src/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-proc-ext/src/proc.c b/mrbgems/mruby-proc-ext/src/proc.c index 87d96a865..f27356bb7 100644 --- a/mrbgems/mruby-proc-ext/src/proc.c +++ b/mrbgems/mruby-proc-ext/src/proc.c @@ -34,7 +34,7 @@ static mrb_value mrb_proc_inspect(mrb_state *mrb, mrb_value self) { struct RProc *p = mrb_proc_ptr(self); - mrb_value str = mrb_str_new_cstr(mrb, "#<Proc:"); + mrb_value str = mrb_str_new_lit(mrb, "#<Proc:"); mrb_str_concat(mrb, str, mrb_ptr_to_str(mrb, mrb_cptr(self))); if (!MRB_PROC_CFUNC_P(p)) { |
