summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-11-22 17:39:56 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-11-22 17:39:56 +0900
commit2c04f4029fba8adf19bc93ba913a9b257028dacf (patch)
tree6b0cf1097b5cc255e892500b54ad0a64b1fc87b9 /mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c
parentbce75e2746f00590a5a6c330725e12805e30fbc1 (diff)
parent48a04ff1b40e83d91ad09dffb4213b7387e3865d (diff)
downloadmruby-2c04f4029fba8adf19bc93ba913a9b257028dacf.tar.gz
mruby-2c04f4029fba8adf19bc93ba913a9b257028dacf.zip
Merge pull request #2648 from cubicdaiya/use_lit_for_mrdb
use mrb_str_xxx_lit for mrdb.
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c')
-rwxr-xr-xmrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c4
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];