I sometimes use this old trick to find the size of a complex structure at compile time:
Maybe you could use a variation of that?
Code:
// Trick to find struct size at compile time:char (*__kaboom)[sizeof(my_t)] = 1; // warning: initialization of 'char (*)[132]' from 'int' makes ...
Statistics: Posted by carlk3 — Sun Mar 24, 2024 8:18 pm