#pragma section-numbers off #pragma camelcase off = SDL_assert = Use this macro to create an assertion for debugging. <> == Syntax == {{{#!highlight cpp void SDL_assert(condition) }}} == Function Parameters == ||'''condition'''||the expression to check|| == Code Examples == {{{#!highlight cpp SDL_assert(1 == 0); // triggers an assertion. SDL_assert(1 == 1); // does NOT trigger an assertion. }}} == Remarks == This function is enabled only when the SDL_ASSERT_LEVEL is set to 2 or 3, otherwise it is disabled. See the [[CategoryAssertions|Assertions Category page]] for details. == Related Functions == .[[SDL_assert_paranoid]] .[[SDL_assert_release]] ---- [[CategoryAPI]], [[CategoryAssertions]]