diff options
-rw-r--r-- | src/expand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expand.cpp b/src/expand.cpp index c2a5ad6..b50d627 100644 --- a/src/expand.cpp +++ b/src/expand.cpp @@ -52,7 +52,7 @@ static inline const AST* expand_def(PEnv& penv, const AST* exp, void* arg) { const ATuple* tup = exp->as_tuple(); - THROW_IF(tup->list_len() != 3, tup->loc, "`def' requires exactly 2 arguments"); + THROW_IF(tup->list_len() < 3, tup->loc, "`def' requires at least 2 arguments"); ATuple::const_iterator i = tup->begin(); const AST* arg1 = *(++i); |