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!
-
-
Replying to @pcwalton
What exactly is desired here? Do you want to write something like... byte blob[]=static_load_bytes("filename.bin") Rather than being a preprocessor thing, it could be compile-time execution of constructs in the compile-time file environment rather than runtime.
3 replies 2 retweets 10 likes -
-
Replying to @pcwalton @TimSweeneyEpic
A lot of people just generate a file with an array in C, its quite common and fine.
2 replies 0 retweets 1 like
Replying to @SasLuca @TimSweeneyEpic
I mean, if you don’t mind generating an enormous AST…
3:23 PM - 28 Feb 2020
0 replies
0 retweets
2 likes
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.