summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/struct.c b/struct.c
index a4e9eb8f..bd9644be 100644
--- a/struct.c
+++ b/struct.c
@@ -1123,6 +1123,12 @@ val static_slot_ensure(val stype, val sym, val newval, val no_error_p)
uw_throwf(error_s, lit("~a: ~s isn't a valid slot name"),
self, sym, nao);
+ if (trace_loaded) {
+ struct struct_type *st = stype_handle(&stype, self);
+ val name = list(meth_s, st->name, sym, nao);
+ trace_check(name);
+ }
+
no_error_p = default_bool_arg(no_error_p);
return static_slot_ens_rec(stype, sym, newval, no_error_p, self, 0);
}