Skip to content

Add support for c++20 likely/unlikely attributes#130

Merged
martinus merged 2 commits into
martinus:mainfrom
duckdoom5:patch-1
Oct 7, 2025
Merged

Add support for c++20 likely/unlikely attributes#130
martinus merged 2 commits into
martinus:mainfrom
duckdoom5:patch-1

Conversation

@duckdoom5

@duckdoom5 duckdoom5 commented Dec 8, 2024

Copy link
Copy Markdown
Contributor

Unfortunately had to add another macro for it, since the attribute needs to be placed after the last bracket of the condition.

Maybe we can combine it into a single macro with some hackyness. Let me know what you'd prefer

@martinus

martinus commented Oct 6, 2025

Copy link
Copy Markdown
Owner

Hi! sorry it took me so long, but this breaks the macos build

@duckdoom5

duckdoom5 commented Oct 6, 2025

Copy link
Copy Markdown
Contributor Author

Ah yes I see. Let me check and fix that.

Edit: It seems the 'has attribute' check was not enough and it also requires a check for cpp20 version to work without errors

@martinus
martinus merged commit 651d9eb into martinus:main Oct 7, 2025
4 checks passed
@martinus

martinus commented Oct 7, 2025

Copy link
Copy Markdown
Owner

Thanks!

@duckdoom5
duckdoom5 deleted the patch-1 branch October 7, 2025 06:24
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