crash vm trace

This commit is contained in:
2026-02-20 23:14:43 -06:00
parent 34cb19c357
commit 5ea0de9fbb
5 changed files with 91 additions and 4 deletions

View File

@@ -76,6 +76,10 @@ typedef struct cell_rt {
cell_hook trace_hook;
} cell_rt;
/* Set by actor_turn/CLI before entering the VM, cleared after.
Read by signal_handler to print JS stack on crash. */
extern volatile JSContext *g_crash_ctx;
cell_rt *create_actor(void *wota);
const char *register_actor(const char *id, cell_rt *actor, int mainthread, double ar);
void actor_disrupt(cell_rt *actor);