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

Fix NIM_STATIC_ASSERT_AUX being redefined on different lines #23729

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

fakuivan
Copy link
Contributor

fixes #17247

This generates a new NIM_STATIC_ASSERT_AUX variable for each line that NIM_STATIC_ASSERT is called from.

While this can solve all existing issues in the current code base, this method is not effective for multiple asserts on a single line.

fixes nim-lang#17247

This generates a new NIM_STATIC_ASSERT_AUX variable
for each line that NIM_STATIC_ASSERT is called from.

While this can solve all existing issues in the current
code base, this method is not effective for multiple
asserts on a single line.
@Araq Araq merged commit 33f5ce8 into nim-lang:devel Jun 18, 2024
14 of 16 checks passed
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 33f5ce8

Hint: mm: orc; opt: speed; options: -d:release
178817 lines; 8.312s; 664.246MiB peakmem

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.

redefinition of typedef ‘NIM_STATIC_ASSERT_AUX’ in x32
2 participants