Implementing #embed for C and C++ was designed to be simple on its face, but because of how the languages gel it has a ton of devils in the details. In this post, I’m going to describe the way I implemented directive does the usual C thing in both GCC and Clang.
Table of contents
A Clang-Specific ExplosionCompiler-specific shenanigans aside…Surviving the -E ToolsA Poorly Conceived IdeaNevertheless,Sort: