The new #embed preprocessor directive in C23 #4966
JupiterRider
started this conversation in
General
Replies: 1 comment
-
I'm one of those that always links to embed all my assets (either for my 2D games or my in house tools), so I have been waiting for this to be integrated into C for awhile. Before, it was XXD or tinyXXD or even using the linker to handle it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For those of you who didn't know: C23 has a new feature, which lets you embed files into executables.
Its called #embed. Not all compilers have implemented this feature yet, but GCC 15 and Clang 19 have: https://en.cppreference.com/w/c/compiler_support/23
Here's a small exmaple:
Beta Was this translation helpful? Give feedback.
All reactions