From f0214ff61b5a94b9629db6f43d7a5b010bd4ffbc Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 18 Aug 2022 09:47:54 +0200 Subject: fix bodyarg --- src/common.hff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common.hff') diff --git a/src/common.hff b/src/common.hff index 3d90c55..4da1398 100644 --- a/src/common.hff +++ b/src/common.hff @@ -15,7 +15,7 @@ defmacro assert { ] } -defmacro foreach(x, i, a, ...body) [ +defmacro foreach(x, i, a, &body) [ { let $a = a; for let i = 0; i < $a.#len; ++i { @@ -33,7 +33,7 @@ defmacro coalesce(a,b) [ $x ? $x : b; ) ] -defmacro with_tmpchange(var,x,...body) [ +defmacro with_tmpchange(var,x,&body) [ { let $tmp = (var); (var) = x; { body } -- cgit v1.2.3