On Fri Aug 4 14:19:38 2023 +0000, Jinoh Kang wrote:
If we can't use `typeof`, it might be a good idea to assert that the type matches. Something like:
(void)sizeof((object) - (type *)(object));
If `__GCC__` is defined:
C_ASSERT(__builtin_types_compatible_p(typeof(object), type *));
I guess that's probably why I initially had an intermediate `const type *` variable before the cast, I'll restore it.