mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
fix invocation of main
This commit is contained in:
parent
670cd82488
commit
6c9e5d3c54
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -614,7 +614,7 @@ sexp run_main (int argc, char **argv) {
|
||||||
sym = sexp_intern(ctx, main_symbol, -1);
|
sym = sexp_intern(ctx, main_symbol, -1);
|
||||||
tmp = sexp_env_ref(ctx, env, sym, SEXP_FALSE);
|
tmp = sexp_env_ref(ctx, env, sym, SEXP_FALSE);
|
||||||
if (sexp_procedurep(tmp)) {
|
if (sexp_procedurep(tmp)) {
|
||||||
args = sexp_list1(ctx, sexp_cdr(args));
|
args = sexp_list1(ctx, args);
|
||||||
check_exception(ctx, sexp_apply(ctx, tmp, args));
|
check_exception(ctx, sexp_apply(ctx, tmp, args));
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "couldn't find main binding: %s in %s\n", main_symbol, main_module ? main_module : argv[i]);
|
fprintf(stderr, "couldn't find main binding: %s in %s\n", main_symbol, main_module ? main_module : argv[i]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue