mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
backtrace.c: skip C method without mid set.
That means it's a method not to be included in the backtrace, for example `raise`.
This commit is contained in:
@@ -45,6 +45,7 @@ each_backtrace(mrb_state *mrb, ptrdiff_t ciidx, each_backtrace_func func, void *
|
||||
ci = &mrb->c->cibase[i];
|
||||
|
||||
if (!ci->proc || MRB_PROC_CFUNC_P(ci->proc)) {
|
||||
if (!ci->mid) continue;
|
||||
loc.lineno = -1;
|
||||
idx = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user