Hi, I'm working on some C bindings for a library and I was wondering. What's the ideal way to use these type of structs?
struct data {
...
#if defined(SOMETHING1)
...
#endif
...
#if defined(SOMETHING2)
...
#endif
...
#if defined(SOMETHING3)
...
#endif
};
my idea would be to put them all in a .h header file and try to import that but it feels a bit hacky. Is there a better way to deal with them?