1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-09 20:13:02 +00:00

More work on improving stacktraces slightly.

Add extra information about when we change fibers. The janet
stack is really a spaghetti stack, where each fiber represents
a group of stack frames as well as a place where we can longjmp to. It
is therefor useful information for the programmer to know where each
stack frame is.

However, an argument could be made that this clutters the stackframe
and is more of a hindrance than a help.
This commit is contained in:
Calvin Rose
2024-05-26 08:45:38 -05:00
parent cb529bbd63
commit 1844beecc3
4 changed files with 48 additions and 40 deletions

View File

@@ -1056,7 +1056,7 @@ JanetCompileResult janet_compile_lint(Janet source,
if (c.result.status == JANET_COMPILE_OK) {
JanetFuncDef *def = janetc_pop_funcdef(&c);
def->name = janet_cstring("_thunk");
def->name = janet_cstring("thunk");
janet_def_addflags(def);
c.result.funcdef = def;
} else {