ignore cfunc method in backtrace

This commit is contained in:
Yukihiro Matsumoto
2012-11-03 01:42:19 +09:00
parent e0aa96a682
commit 5987f67a8d
+3 -2
View File
@@ -182,8 +182,9 @@ showcallinfo(mrb_state *mrb)
line = -1;
if (MRB_PROC_CFUNC_P(ci->proc)) {
filename = "(cfunc)";
} else {
continue;
}
else {
mrb_irep *irep = ci->proc->body.irep;
if (irep->filename != NULL)
filename = irep->filename;