Use this macro to create an assertion for debugging.
void SDL_assert(condition)
condition |
the expression to check |
1 == 0); // triggers an assertion.
SDL_assert(1 == 1); // does NOT trigger an assertion. SDL_assert(
This function is enabled only when the SDL_ASSERT_LEVEL is set to 2 or 3, otherwise it is disabled. See the Assertions Category page for details.
CategoryAPI, CategoryAssertions