mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
ignore cfunc method in backtrace
This commit is contained in:
+3
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user