Go to file
Ryan C. Gordon 73fed37c04 assert: make disabled asserts work with bitfield conditions.
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.

(manually cherry picked from commit daf519ae05)
2026-07-13 18:30:53 -04:00
2026-01-01 09:51:07 -08:00
2025-12-14 07:48:57 +00:00
2022-11-17 10:43:45 +01:00
2024-11-02 01:58:46 +01:00
2026-05-25 18:47:32 +03:00
2026-05-25 18:47:32 +03:00
2026-01-01 09:51:07 -08:00
2024-09-14 21:13:56 -07:00

Simple DirectMedia Layer (SDL) Version 2.0

https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting with README.md

Enjoy!

Sam Lantinga (slouken@libsdl.org)

Description
Simple Directmedia Layer
Readme 183 MiB
Languages
C 87.7%
C++ 4.3%
Objective-C 3.4%
CMake 1.7%
Java 0.7%
Other 1.9%