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

Define __STDC_EMBED macros #718

Closed
ehaas opened this issue Jul 5, 2024 · 0 comments · Fixed by #721
Closed

Define __STDC_EMBED macros #718

ehaas opened this issue Jul 5, 2024 · 0 comments · Fixed by #721
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ehaas
Copy link
Collaborator

ehaas commented Jul 5, 2024

In Compilation.generateBuiltinMacros add

#define __STDC_EMBED_NOT_FOUND__ 0
#define __STDC_EMBED_FOUND__ 1
#define __STDC_EMBED_EMPTY__ 2

These are new in C23 but can safely be defined regardless of the standard being used since they are reserved identifiers.

https://en.cppreference.com/w/c/preprocessor/replace

@ehaas ehaas added enhancement New feature or request good first issue Good for newcomers labels Jul 5, 2024
@Vexu Vexu closed this as completed in #721 Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant