mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
making stack trace check for null procedures
This commit is contained in:
parent
74185fbe11
commit
c163599685
1 changed files with 1 additions and 1 deletions
2
vm.c
2
vm.c
|
@ -25,7 +25,7 @@ void sexp_stack_trace (sexp ctx, sexp out) {
|
|||
if (! sexp_oportp(out)) out = sexp_current_error_port(ctx);
|
||||
for (i=fp; i>4; i=sexp_unbox_fixnum(stack[i+3])) {
|
||||
self = stack[i+2];
|
||||
if (sexp_procedurep(self)) {
|
||||
if (self && sexp_procedurep(self)) {
|
||||
sexp_write_string(ctx, " called from ", out);
|
||||
bc = sexp_procedure_code(self);
|
||||
if (sexp_truep(sexp_bytecode_name(bc)))
|
||||
|
|
Loading…
Add table
Reference in a new issue