I’ve always found it really sad that the C preprocessor doesn’t provide the one thing preprocessors are really useful for, which is .incbin (include_bytes! in Rust) The lack of it even led to abominations such as the XBM image format!
-
-
Yeah. Compile time I/O would work too.
-
A lot of people just generate a file with an array in C, its quite common and fine.
- 1 more reply
New conversation -
-
-
`std::embed` for C++ was almost a thing, but the story of how the committee punted that is now a story of infamy (people cited some nonsensical concerns about "security risks")
-
i like to use it as an example when ppl say "why don't you write a proposal" :)
- 7 more replies
New conversation -
-
-
Every GameBoy developer starts by writing a binary-to-huge-C-literal converter. By the end of the project it gets upgraded to a binary-to-obj.o converter.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.