Aug. 4, 2023
10:06 a.m.
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: ```c (void)sizeof((object) - (type *)(object)); ``` If `__GCC__` is defined: ```c 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.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3103#note_41388