Not sure what you were running into. I routinely do this just fine.
> This didn't even use constexpr, just preprocessor trickery.
Isn't the preprocessor shared between C and C++?
> in C++ you can initialize a global struct and it gets statically linked into the output
That sounds to be doable just the same in C?
Not sure what you were running into. I routinely do this just fine.
> This didn't even use constexpr, just preprocessor trickery.
Isn't the preprocessor shared between C and C++?
> in C++ you can initialize a global struct and it gets statically linked into the output
That sounds to be doable just the same in C?