aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/test.cff
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/test.cff')
-rw-r--r--bootstrap/test.cff8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap/test.cff b/bootstrap/test.cff
index d835b7e..6f5242d 100644
--- a/bootstrap/test.cff
+++ b/bootstrap/test.cff
@@ -10,10 +10,10 @@ enum Color {
Red, Green, Blue
}
-defmacro each(i, x, arr, ...body) [
+defmacro each(i, x, arr, &body) [
for let i = 0; i < arr.#len; ++i {
let x = arr[i];
- { body }
+ body
}
]
@@ -88,9 +88,9 @@ extern fn main (argc int, argv **u8) int {
let is []int = { [4] = 1, 2, [1 - 1] = 3 };
isort(is, is.#len);
- each(i, x, is,
+ each(i, x, is) {
printf("%d\n", x);
- )
+ }
let slice [#]int = is[3::5];
printf("sl %d\n", slice[0]);