mirror of
https://github.com/janet-lang/janet
synced 2024-11-18 06:34:48 +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
|
(when f
|
||||||
(loop
|
(loop
|
||||||
[nf :in (reverse (debug/lineage f))
|
[nf :in (reverse (debug/lineage f))
|
||||||
:before (file/write stderr " (fiber)\n")
|
|
||||||
{:function func
|
{:function func
|
||||||
:tail tail
|
:tail tail
|
||||||
:pc pc
|
: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--) {
|
for (fi = janet_v_count(fibers) - 1; fi >= 0; fi--) {
|
||||||
fiber = fibers[fi];
|
fiber = fibers[fi];
|
||||||
int32_t i = fiber->frame;
|
int32_t i = fiber->frame;
|
||||||
if (i > 0) fprintf(stderr, " (fiber)\n");
|
|
||||||
while (i > 0) {
|
while (i > 0) {
|
||||||
JanetStackFrame *frame = (JanetStackFrame *)(fiber->data + i - JANET_FRAME_SIZE);
|
JanetStackFrame *frame = (JanetStackFrame *)(fiber->data + i - JANET_FRAME_SIZE);
|
||||||
JanetFuncDef *def = NULL;
|
JanetFuncDef *def = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user