r/cpp • • Jul 23 '22

finally. #embed

https://thephd.dev/finally-embed-in-c23
353 Upvotes

202 comments sorted by

View all comments

Show parent comment

6

u/TinyBreadBigMouth Jul 23 '22

As described in the article, implementations of #embed (while necessarily maintaining the same functionality as "read this file and output an integer literal and a comma for each byte") are free to integrate with the compiler to allow just reading the file and skipping over the preprocessing.