diff options
| author | LLLL Colonq <llll@colonq> | 2026-09-02 21:13:24 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-09-02 21:13:24 -0400 |
| commit | c01f847b68a7fcd48eb0f3d456aa993a6f69ea8d (patch) | |
| tree | 9da9636f6f390950f052c14b64f833ac1819d5cc /pit/src/runtime/value/cell.c | |
| parent | a107593b6b362fb68e409c9d7b79427776d137d7 (diff) | |
Diffstat (limited to 'pit/src/runtime/value/cell.c')
| -rw-r--r-- | pit/src/runtime/value/cell.c | 2 |
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; } |
