mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Remove annoying (fiber) text from stacktrace.
This commit is contained in:
parent
192705113e
commit
e53778d5d8
@ -1475,7 +1475,6 @@ value, one key will be ignored."
|
||||
(when f
|
||||
(loop
|
||||
[nf :in (reverse (debug/lineage f))
|
||||
:before (file/write stderr " (fiber)\n")
|
||||
{:function func
|
||||
:tail tail
|
||||
:pc pc
|
||||
|
@ -39,7 +39,6 @@ void janet_stacktrace(JanetFiber *fiber, const char *errtype, Janet err) {
|
||||
for (fi = janet_v_count(fibers) - 1; fi >= 0; fi--) {
|
||||
fiber = fibers[fi];
|
||||
int32_t i = fiber->frame;
|
||||
if (i > 0) fprintf(stderr, " (fiber)\n");
|
||||
while (i > 0) {
|
||||
JanetStackFrame *frame = (JanetStackFrame *)(fiber->data + i - JANET_FRAME_SIZE);
|
||||
JanetFuncDef *def = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user