Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Remove ##__VA_ARGS__ #150

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

FintasticMan
Copy link
Contributor

@FintasticMan FintasticMan commented Jan 2, 2025

Supersedes #135.

Removes the use of the GNU extension ##__VA_ARGS__. There were 2 (technically 3) usages of it:

  • CLAY: based on the poll I sent in the Discord, calling CLAY with no parameters is very uncommon, and if it is needed, you can just use CLAY(0).
  • CLAY_SIZING_{FIT,GROW}: These macros took a struct before for the min and max, this changes it to take min and max as separate parameters, where max is optional. This also more accurately matches what it says in the README.

@FintasticMan
Copy link
Contributor Author

FintasticMan commented Jan 2, 2025

Rebased due to conflicts. Edit: again

@FintasticMan FintasticMan force-pushed the remove-gnu-vararg-ext branch from 6194963 to 6694626 Compare January 2, 2025 22:36
@FintasticMan
Copy link
Contributor Author

I'll be fixing the conflicts in the coming days

@nicbarker nicbarker force-pushed the remove-gnu-vararg-ext branch from 6694626 to 0cd92ec Compare January 10, 2025 06:28
@nicbarker nicbarker merged commit 670f707 into nicbarker:main Jan 10, 2025
3 checks passed
clay.h Show resolved Hide resolved
@FintasticMan FintasticMan deleted the remove-gnu-vararg-ext branch January 10, 2025 09:43
nicbarker pushed a commit that referenced this pull request Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants