From c01f847b68a7fcd48eb0f3d456aa993a6f69ea8d Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Wed, 2 Sep 2026 21:13:24 -0400 Subject: pit: Debug x86.pit --- pit/src/runtime/value/cell.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pit/src/runtime/value') diff --git a/pit/src/runtime/value/cell.c b/pit/src/runtime/value/cell.c index 34b9226..2a99ce2 100644 --- a/pit/src/runtime/value/cell.c +++ b/pit/src/runtime/value/cell.c @@ -11,11 +11,13 @@ pit_value pit_value_cell_new(pit_runtime *rt, pit_value v) { h->in.cell = v; return ret; } +#include pit_value pit_value_cell_get(pit_runtime *rt, pit_value cell, pit_value sym) { if (pit_value_sort(cell) != PIT_VALUE_SORT_REF) { char buf[256]; i64 end = pit_dump(rt, buf, sizeof(buf) - 1, sym, false); buf[end] = 0; + fprintf(stderr, "attempted to get unbound variable/function: %s\n", buf); pit_error(rt, "attempted to get unbound variable/function: %s", buf); return PIT_NIL; } -- cgit v1.3.1