mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
avoid trigraph (???) in backtrace
This commit is contained in:
+5
-7
@@ -200,14 +200,12 @@ showcallinfo(mrb_state *mrb)
|
||||
sep = "#";
|
||||
|
||||
method = mrb_sym2name(mrb, ci->mid);
|
||||
if (method == NULL)
|
||||
method = "(???)";
|
||||
|
||||
printf("\t[%d] %s:%d:in %s%s%s\n",
|
||||
printf("\t[%d] %s:%d%s%s%s%s\n",
|
||||
i, filename, line,
|
||||
mrb_class_name(mrb, ci->proc->target_class),
|
||||
sep,
|
||||
method);
|
||||
method ? ":in " : "",
|
||||
method ? mrb_class_name(mrb, ci->proc->target_class) : "",
|
||||
method ? sep : "",
|
||||
method ? method : "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user