On 08/01/14 21:41, Ian Pilcher wrote:
Ideally I could create some sort of generic macro that "casts" (using the term very loosely) any static initializer to an array of unsigned char that contains its binary representation. Sadly, I don't think that's actually possible.
I think you want to use an union, not a flexible array (yes, you will overallocate for some types, but should be saner).