mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-07 05:06:37 +02:00
scripts should trace when DEBUG_VM is set
This commit is contained in:
parent
22deffb46e
commit
369836d07b
1 changed files with 1 additions and 0 deletions
1
main.c
1
main.c
|
@ -219,6 +219,7 @@ void run_main (int argc, char **argv) {
|
|||
sexp_env_define(ctx, env, sexp_intern(ctx, sexp_argv_symbol, -1), args);
|
||||
sexp_eval_string(ctx, sexp_argv_proc, -1, env);
|
||||
if (i < argc) { /* script usage */
|
||||
sexp_context_tracep(ctx) = 1;
|
||||
check_exception(ctx, sexp_load(ctx, tmp=sexp_c_string(ctx, argv[i], -1), env));
|
||||
tmp = sexp_intern(ctx, "main", -1);
|
||||
tmp = sexp_env_ref(env, tmp, SEXP_FALSE);
|
||||
|
|
Loading…
Add table
Reference in a new issue