3 ms·
You can even change that to: #define BLA_DEFAULTS .a = 23, .hello = "Hello World!" struct bla_t blub = { BLA_DEFAULTS, .a = 42,
by flohofwoe 4y ago
You can even change that to:
#define BLA_DEFAULTS .a = 23, .hello = "Hello World!"
struct bla_t blub = {
BLA_DEFAULTS,
.a = 42,
};
...because C99 allows designated initializers to show up multiple times, but that's all a bit too much macro magic for my taste, I'd really prefer the defaults in the struct declaration.