diff options
| author | Tatsuhiko Kubo <[email protected]> | 2014-11-22 10:43:01 +0900 |
|---|---|---|
| committer | Tatsuhiko Kubo <[email protected]> | 2014-11-22 10:43:01 +0900 |
| commit | 48a04ff1b40e83d91ad09dffb4213b7387e3865d (patch) | |
| tree | 27d4a500c0feadc0defcca53e9d48ff8e8ef8414 /mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c | |
| parent | b28ec1bc88d29d8e7205401a6e323f20581d642f (diff) | |
| download | mruby-48a04ff1b40e83d91ad09dffb4213b7387e3865d.tar.gz mruby-48a04ff1b40e83d91ad09dffb4213b7387e3865d.zip | |
use mrb_str_xxx_lit for mrdb.
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c')
| -rwxr-xr-x | mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c index 23b321f7c..2708a6259 100755 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c @@ -56,9 +56,9 @@ mrb_debug_eval(mrb_state *mrb, mrb_debug_context *dbg, const char *expr, size_t * e * end */ - ruby_code = mrb_str_new_cstr(mrb, "begin\n"); + ruby_code = mrb_str_new_lit(mrb, "begin\n"); ruby_code = mrb_str_cat(mrb, ruby_code, expr, len); - ruby_code = mrb_str_cat_cstr(mrb, ruby_code, "\nrescue => e\ne\nend"); + ruby_code = mrb_str_cat_lit(mrb, ruby_code, "\nrescue => e\ne\nend"); recv = dbg->regs[0]; |
