diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-05-09 21:44:01 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-05-09 21:44:01 -0700 |
commit | f46ff43283a70b77d2c76fd37a415ab506b0f78c (patch) | |
tree | c0faa0bdbfe2550bd00de2c8142600a3a5fb5706 /autoload.c | |
parent | e1952b2d9c4dc9165d05161e170b272a1d726be9 (diff) | |
download | txr-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |