diff options
author | Keith Packard <keithp@keithp.com> | 2016-11-18 21:15:33 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-11-18 21:15:33 -0800 |
commit | 3fec65a3921b3783b250031b2824b4689b8635f9 (patch) | |
tree | 8ad9d3a9dc2759eef9bc567a6f8de78b0a71d24c | |
parent | 048a610f42cef7f3422baaab2ba2d4ce03e59768 (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>
-rw-r--r-- | src/lisp/ao_lisp_lambda.c | 3 |
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; |