| ▲ | jcalvinowens 6 hours ago | |
In modern C you can use static_assert to make this a bit nicer.
...although it would be a bit of a shame IMHO to add that reflexively in code that doesn't necessarily require it.https://en.cppreference.com/w/c/language/_Static_assert.html | ||
| ▲ | gdjjg 5 hours ago | parent [-] | |
Gtav | ||