bloat-buster/tests/basic_macro.bbb
David Gonzalez Martin 7cc1e29694
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
Implement basic macro
2025-04-24 06:29:19 -06:00

12 lines
152 B
Plaintext

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;
}