Skip to content

Commit

Permalink
Switch to <* *> docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Oct 12, 2024
1 parent 0da7f1b commit 0618a5b
Show file tree
Hide file tree
Showing 110 changed files with 3,143 additions and 3,153 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,12 @@ jobs:
../build/c3c compile-run linux_stack.c3
../build/c3c compile-run examples/args.c3 -- foo -bar "baz baz"
- name: Compile and run dynlib-test
run: |
cd resources/examples/dynlib-test
../../../build/c3c dynamic-lib add.c3
../../../build/c3c compile-run test.c3 -l ./add.so
- name: Compile run unit tests
run: |
cd test
Expand Down Expand Up @@ -621,6 +627,12 @@ jobs:
../build/c3c compile-run -O5 examples/load_world.c3
../build/c3c compile-run examples/args.c3 -- foo -bar "baz baz"
- name: Compile and run dynlib-test
run: |
cd resources/examples/dynlib-test
../../../build/c3c dynamic-lib add.c3
../../../build/c3c compile-run test.c3 -l ./add.so
- name: Compile run unit tests
run: |
cd test
Expand Down
6 changes: 3 additions & 3 deletions lib/std/ascii.c3
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ fn bool char.is_blank(char c) => is_blank_m(c);
fn bool char.is_cntrl(char c) => is_cntrl_m(c);
fn char char.to_lower(char c) => (char)to_lower_m(c);
fn char char.to_upper(char c) => (char)to_upper_m(c);
/**
* @require c.is_xdigit()
**/
<*
@require c.is_xdigit()
*>
fn char char.from_hex(char c) => c.is_digit() ? c - '0' : 10 + (c | 0x20) - 'a';

fn bool uint.in_range(uint c, uint start, uint len) => in_range_m(c, start, len);
Expand Down
274 changes: 137 additions & 137 deletions lib/std/atomic.c3

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions lib/std/bits.c3
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module std::bits;

/**
* @require types::is_intlike($typeof(i)) `The input must be an integer or integer vector`
**/
<*
@require types::is_intlike($typeof(i)) `The input must be an integer or integer vector`
*>
macro reverse(i) => $$bitreverse(i);

/**
* @require types::is_intlike($typeof(i)) `The input must be an integer or integer vector`
**/
<*
@require types::is_intlike($typeof(i)) `The input must be an integer or integer vector`
*>
macro bswap(i) @builtin => $$bswap(i);

macro uint[<*>].popcount(self) => $$popcount(self);
Expand Down
Loading

0 comments on commit 0618a5b

Please sign in to comment.