Skip to content

Commit

Permalink
Updated retry and test.c3 examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Feb 17, 2024
1 parent bec1116 commit 9a114b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/examples/retry.c3
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ macro @retry(#function, int retries = 3)
}
return result;
} while (retries-- > 0);
return e!;
return e?;
}

fn void main()
Expand Down
6 changes: 3 additions & 3 deletions resources/testfragments/test.c3
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ extern fn int printf(char* message, ...);

macro void @swap(&a, &b)
{
$typeof(a) temp = a;
a = b;
b = temp;
$typeof(*a) temp = *a;
*a = *b;
*b = temp;
}

fn void main()
Expand Down

0 comments on commit 9a114b3

Please sign in to comment.