From 27bcb3292bde166a98829a63ff177b6831c46f1f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 19 Jun 2009 07:44:49 +0000 Subject: Fix function definitions with several expressions in body. git-svn-id: http://svn.drobilla.net/resp/tuplr@125 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- tuplr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuplr.cpp b/tuplr.cpp index a836aba..c945c34 100644 --- a/tuplr.cpp +++ b/tuplr.cpp @@ -128,7 +128,7 @@ readExpression(Cursor& cur, istream& in) inline SExp macDef(PEnv& penv, const SExp& exp) { - THROW_IF(exp.size() != 3, exp.loc, "[MAC] `def' requires exactly 2 arguments") + THROW_IF(exp.size() < 3, exp.loc, "[MAC] `def' requires at least 2 arguments") if (exp.at(1).type == SExp::ATOM) { return exp; } else { -- cgit v1.2.1