SDL_ASSERT_LEVEL(3)
π SDL_ASSERT_LEVEL π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we talk about SDL_ASSERT_LEVEL β the macro that decides just how loudly your asserts are gonna yell at you π«Ά
β¨ NAME β¨
SDL_ASSERT_LEVEL β the level of assertion aggressiveness. yes really, that's the whole vibe check: how aggressive are your assertions gonna be π₯
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_assert.h>
#define SDL_ASSERT_LEVEL SomeNumberBasedOnVariousFactors
likeβ¦ it's literally SomeNumberBasedOnVariousFactors. iconic, no notes π
π¦ DESCRIPTION π¦
so here's the tea: this value changes depending on compiler options and other preprocessor defines. it's not you picking it, it's the build picking it for you, bestie.
it is currently one of the following values β but heads up, future SDL releases might add more, so don't go treating this list like it's frozen forever π
0β all SDL assertion macros are disabled. total silence. nothing checks, nothing complains. the chillest possible setting π1β Release settings:SDL_assertis disabled,SDL_assert_releaseis enabled. so the release one still shows up to the party, but the regular one ghosted π2β Debug settings:SDL_assertandSDL_assert_releaseare both enabled. now we're talking, both of them are awake β¨3β Paranoid settings: all SDL assertion macros are enabled, includingSDL_assert_paranoid. this is the maximum-paranoia, main-character, checking-everything level ππ
β AVAILABILITY β
this macro has been available since SDL 3.2.0. so if you're on anything olderβ¦ yeah, no SDL_ASSERT_LEVEL for you, sorry babe π
and that's the whole page, bestie!! this was Simple Directmedia Layer, SDL 3.4.18, and the page itself is dated SDL_ASSERT_LEVEL(3) β mwah, go forth and assert responsibly πππ¦
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms