Comment by junon

3 years ago

This will simplify a lot of build pipelines for sure.

One thing that isn't clear from skimming the article, how do you refer to the embedded data again?

> The directive is well-specified, currently, in all cases to generate a comma-delimited list of integers

I.e. you most likely use it to initialize a static variable, and then refer to that variable.

  • Ah so this basically?

        static const char d[]={
        #embed ...
        };
    

    EDIT: ah it was showing up more like a comment which made it hard to spot.