mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-23 01:02:36 +00:00
We don't care _what_ the `sizeof` results are, we just want it to vaporize the condition's code out of the build. So we check it with a `? 1 : 0`, so it always boils down to a `sizeof (int)`, no matter what data type the condition actually is. This works with bitfields, pointers, anything that can be "truthy." If it isn't truthy, it would fail when assertions are enabled anyhow. Fixes #15990.