Implement basic macro
All checks were successful
CI / ci (ReleaseFast, ubuntu-latest) (pull_request) Successful in 2m35s
CI / ci (ReleaseSmall, ubuntu-latest) (pull_request) Successful in 2m33s
CI / ci (ReleaseSafe, ubuntu-latest) (pull_request) Successful in 2m43s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 4m5s
CI / ci (ReleaseFast, ubuntu-latest) (push) Successful in 2m30s
CI / ci (ReleaseSmall, ubuntu-latest) (push) Successful in 2m27s
CI / ci (ReleaseSafe, ubuntu-latest) (push) Successful in 2m35s
CI / ci (Debug, ubuntu-latest) (push) Successful in 3m53s
All checks were successful
CI / ci (ReleaseFast, ubuntu-latest) (pull_request) Successful in 2m35s
CI / ci (ReleaseSmall, ubuntu-latest) (pull_request) Successful in 2m33s
CI / ci (ReleaseSafe, ubuntu-latest) (pull_request) Successful in 2m43s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 4m5s
CI / ci (ReleaseFast, ubuntu-latest) (push) Successful in 2m30s
CI / ci (ReleaseSmall, ubuntu-latest) (push) Successful in 2m27s
CI / ci (ReleaseSafe, ubuntu-latest) (push) Successful in 2m35s
CI / ci (Debug, ubuntu-latest) (push) Successful in 3m53s
This commit is contained in:
parent
2be7142608
commit
7cc1e29694
1164
src/bootstrap.zig
1164
src/bootstrap.zig
File diff suppressed because it is too large
Load Diff
11
tests/basic_macro.bbb
Normal file
11
tests/basic_macro.bbb
Normal file
@ -0,0 +1,11 @@
|
||||
sub = macro (a: s32, b: s32) s32
|
||||
{
|
||||
return a - b;
|
||||
}
|
||||
|
||||
[export] main = fn [cc(c)] () s32
|
||||
{
|
||||
>a = sub(1, 1);
|
||||
>b = sub(2, 2);
|
||||
return a + b;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user