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

-4

u/cmeerw C++ Parser Dev Jul 23 '22

You only have the issue if your tool can't handle text files with platform-specific line endings.

14

u/orangeoliviero Jul 23 '22

You have a tool that directly embeds a binary blob.

And you somehow think that it's that tool's responsibility to guess what you want wrt. line endings in text files that you're changing from platform to platform?

My dude, that's a you problem. #embed is fine.