Differentiate apply asserts.
* mes.c (apply_env): Split bool assert into bool, number and string.
This commit is contained in:
parent
b9bbac3d0c
commit
2a8d3c57b7
4
mes.c
4
mes.c
|
@ -341,7 +341,9 @@ apply_env (scm *fn, scm *x, scm *a)
|
|||
return eval_env (cons (&symbol_begin, body), cons (cons (&symbol_closure, p), p));
|
||||
}
|
||||
scm *efn = eval_env (fn, a);
|
||||
if (efn->type == NUMBER || efn == &scm_f || efn == &scm_t) assert (!"apply bool");
|
||||
if (efn == &scm_f || efn == &scm_t) assert (!"apply bool");
|
||||
if (efn->type == NUMBER) assert (!"apply number");
|
||||
if (efn->type == STRING) assert (!"apply string");
|
||||
return apply_env (efn, x, a);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue