aboutsummaryrefslogtreecommitdiff
path: root/src/common.hff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-18 09:47:54 +0200
committerlemon <lsof@mailbox.org>2022-08-18 09:47:54 +0200
commitf0214ff61b5a94b9629db6f43d7a5b010bd4ffbc (patch)
treec8517b4950bc3937e82ff49c757fb24a7364e3b0 /src/common.hff
parent8c81c70b904a41b8a0d44dc418b7c39bf325c2a2 (diff)
fix bodyarg
Diffstat (limited to 'src/common.hff')
-rw-r--r--src/common.hff4
1 files changed, 2 insertions, 2 deletions
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 }