~brenns10/funlisp

ac96394c13b59aa636208891539fd5f10e3df2ca — Stephen Brennan 2 years ago e71702e
Allow empty progn
2 files changed, 2 insertions(+), 1 deletions(-)

M CHANGELOG.md
M src/util.c
M CHANGELOG.md => CHANGELOG.md +1 -0
@@ 25,6 25,7 @@ will be made on patch versions.
  level, with error codes and messages. Codes are useful for programs to
  understand the type of error which occurred, while messages are useful for
  users looking at errors.
- Progns may now be empty

## [0.1.0] (BETA) - 2018-06-13


M src/util.c => src/util.c +1 -1
@@ 78,7 78,7 @@ lisp_value *lisp_progn(lisp_runtime *rt, lisp_scope *scope, lisp_list *l)
	lisp_value *v;

	if (lisp_nil_p((lisp_value*)l))
		return lisp_error(rt, LE_2FEW, "progn: need at least one arg");
		return lisp_nil_new(rt);

	while (1) {
		v = lisp_eval(rt, scope, l->left);