summaryrefslogtreecommitdiff
path: root/src/lisp/ao_lisp_lambda.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-18 21:15:33 -0800
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:52 -0800
commit85db6d68a273859482e036b60fec7e2b84e9c262 (patch)
treedac8e140fbfaf15d0b3a9c80bdb23f461e9bb6c0 /src/lisp/ao_lisp_lambda.c
parentecef616599d5ec4fd5d42e67d0dc779a0630079b (diff)
altos/lisp: Empty lambda body is not an error
It's not very exciting, but it's still legal Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_lambda.c')
-rw-r--r--src/lisp/ao_lisp_lambda.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lisp/ao_lisp_lambda.c b/src/lisp/ao_lisp_lambda.c
index 67ad24ee..b164cd66 100644
--- a/src/lisp/ao_lisp_lambda.c
+++ b/src/lisp/ao_lisp_lambda.c
@@ -77,9 +77,6 @@ ao_lisp_lambda_alloc(struct ao_lisp_cons *code, int args)
if (!lambda)
return AO_LISP_NIL;
- if (!code->cdr)
- return ao_lisp_error(AO_LISP_INVALID, "missing parameters to lambda");
-
if (!ao_lisp_check_argt(_ao_lisp_atom_lambda, code, 0, AO_LISP_CONS, 1))
return AO_LISP_NIL;
f = 0;