summaryrefslogtreecommitdiff
path: root/pit/src/runtime/value
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-09-02 21:13:24 -0400
committerLLLL Colonq <llll@colonq>2026-09-02 21:13:24 -0400
commitc01f847b68a7fcd48eb0f3d456aa993a6f69ea8d (patch)
tree9da9636f6f390950f052c14b64f833ac1819d5cc /pit/src/runtime/value
parenta107593b6b362fb68e409c9d7b79427776d137d7 (diff)
pit: Debug x86.pitHEADmaster
Diffstat (limited to 'pit/src/runtime/value')
-rw-r--r--pit/src/runtime/value/cell.c2
1 files changed, 2 insertions, 0 deletions
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 <stdio.h>
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;
}