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 e8639c5
Show file tree
Hide file tree
Showing 116 changed files with 3,147 additions and 3,161 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ jobs:
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
..\..\build\${{ matrix.build_type }}\c3c.exe --debug-log build hello_world_win32_lib
- name: Compile and run dynlib-test
run: |
cd resources/examples/dynlib-test
..\..\..\build\${{ matrix.build_type }}\c3c.exe dynamic-lib add.c3
..\..\..\build\${{ matrix.build_type }}\c3c.exe compile-run test.c3 -l ./add.lib
- name: Vendor-fetch
run: |
build\${{ matrix.build_type }}\c3c.exe vendor-fetch raylib5
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.dylib
- 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 e8639c5

Please sign in to comment.