aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-19 07:44:49 +0000
committerDavid Robillard <d@drobilla.net>2009-06-19 07:44:49 +0000
commit27bcb3292bde166a98829a63ff177b6831c46f1f (patch)
tree6bd8520cc2a3c964f704debef09a29ae001e4483
parent38b50b89bc638fe5d94bc6523c574504a5ef368d (diff)
downloadresp-27bcb3292bde166a98829a63ff177b6831c46f1f.tar.gz
resp-27bcb3292bde166a98829a63ff177b6831c46f1f.tar.bz2
resp-27bcb3292bde166a98829a63ff177b6831c46f1f.zip
Fix function definitions with several expressions in body.
git-svn-id: http://svn.drobilla.net/resp/tuplr@125 ad02d1e2-f140-0410-9f75-f8b11f17cedd
-rw-r--r--tuplr.cpp2
1 files changed, 1 insertions, 1 deletions
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 {