From ad717d4bba7b76cb5de8617d951277a9ebfed184 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 30 Oct 2016 15:42:50 +0100 Subject: [PATCH] More error handling on apply_env. * mes.c (apply_env): Assert if applying *unspecified*. --- mes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mes.c b/mes.c index 19ffbfda..cfd834d1 100644 --- a/mes.c +++ b/mes.c @@ -382,6 +382,7 @@ apply_env (scm *fn, scm *x, scm *a) if (efn == &scm_f || efn == &scm_t) assert (!"apply bool"); if (efn->type == NUMBER) assert (!"apply number"); if (efn->type == STRING) assert (!"apply string"); + if (efn == &scm_unspecified) assert (!"apply *unspecified*"); return apply_env (efn, x, a); }