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

Feature request: C23's #embed preprocessor directive #174

Open
Tracked by #77
leha-bot opened this issue Aug 2, 2022 · 1 comment
Open
Tracked by #77

Feature request: C23's #embed preprocessor directive #174

leha-bot opened this issue Aug 2, 2022 · 1 comment
Labels
area:compiler Related to code compilation or type checking area:preprocessor Related to C preprocessor good-first-issue An issue considered simple enough for new contributors hacktoberfest kind:feature New feature or request status:help-wanted Open for contributors

Comments

@leha-bot
Copy link

leha-bot commented Aug 2, 2022

See cplusplus/papers#700

TL;DR: It allows to include any external binary data into your executable.

see also @ThePhD 's blog posts about this: https://thephd.dev/embed-the-details ; https://thephd.dev/finally-embed-in-c23
and their test library for this feature: github.com/ThePhD/embed

Many thanks for your project and keep moving on <3

When implementing this, see TODO[#174] in the sources.

@ForNeVeR
Copy link
Owner

ForNeVeR commented Aug 4, 2022

Right now, Cesium targets to be a C17-compatible implementation.

When/if (yes, I am that pessimistic) C23 comes out, this will automatically become a part of our goal.

The development resources for Cesium are really limited, and the goals are enormous, so I don't believe we can focus our efforts on features on a future version of the standard today.

Moreover, we have a milestone-targeted approach to development and mostly implement features that are required to compile our target milestone programs. As there are not a lot of programs which are viable Cesium milestone targets and simultaneously use #embed, this cannot be our priority at the moment.

We accept contributions, though, and I'd be happy to see an implementation of #embed.

@ForNeVeR ForNeVeR added kind:feature New feature or request status:help-wanted Open for contributors area:preprocessor Related to C preprocessor area:compiler Related to code compilation or type checking good-first-issue An issue considered simple enough for new contributors labels Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:compiler Related to code compilation or type checking area:preprocessor Related to C preprocessor good-first-issue An issue considered simple enough for new contributors hacktoberfest kind:feature New feature or request status:help-wanted Open for contributors
Projects
None yet
Development

No branches or pull requests

2 participants