SDL_disabled_assert

Macro SDL_disabled_assert 

Source
macro_rules! SDL_disabled_assert {
    ($condition:expr) => { ... };
}
Expand description

The macro used when an assertion is disabled.

This isn’t for direct use by apps, but this is the code that is inserted when an SDL_assert is disabled (perhaps in a release build).

The code does nothing, but wraps condition in a sizeof operator, which generates no code and has no side effects, but avoid compiler warnings about unused variables.

§Parameters

  • condition: the condition to assert (but not actually run here).

§Availability

This macro is available since SDL 3.2.0.