summaryrefslogtreecommitdiffstats
path: root/autoload.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-05-09 21:44:01 -0700
committerKaz Kylheku <kaz@kylheku.com>2025-05-09 21:44:01 -0700
commitf46ff43283a70b77d2c76fd37a415ab506b0f78c (patch)
treec0faa0bdbfe2550bd00de2c8142600a3a5fb5706 /autoload.c
parente1952b2d9c4dc9165d05161e170b272a1d726be9 (diff)
downloadtxr-f46ff43283a70b77d2c76fd37a415ab506b0f78c.tar.gz
txr-f46ff43283a70b77d2c76fd37a415ab506b0f78c.tar.bz2
txr-f46ff43283a70b77d2c76fd37a415ab506b0f78c.zip
trace: need autoload on sys:*trace-level*.
* autoload.c (trace_set_entries): Add sys:*trace-level* symbol as autoload trigger. Compiled code which uses the :trace parameter macro references this variable (and some other internal trace symbols, but that one first).
Diffstat (limited to 'autoload.c')
-rw-r--r--autoload.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload.c b/autoload.c
index 84376173..32e24e5c 100644
--- a/autoload.c
+++ b/autoload.c
@@ -396,6 +396,10 @@ static val build_instantiate(void)
static val trace_set_entries(val fun)
{
+ val sys_vname[] = {
+ lit("*trace-level*"),
+ nil
+ };
val sys_name[] = {
lit("trace"), lit("untrace"), nil
};
@@ -408,6 +412,7 @@ static val trace_set_entries(val fun)
val kname[] = {
lit("trace"), nil
};
+ autoload_sys_set(al_var, sys_vname, fun);
autoload_sys_set(al_fun, sys_name, fun);
autoload_set(al_var, vname, fun);
autoload_set(al_fun, name, fun);