logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_disabled_assert - The macro used when an assertion is disabled.

Availability

       This macro is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                             SDL_disabled_assert(3)

Description

       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.

Header File

       Defined in SDL3/SDL_assert.h

Name

       SDL_disabled_assert - The macro used when an assertion is disabled.

Synopsis

#include"SDL3/SDL.h"#defineSDL_disabled_assert(condition).BIdo{(void)sizeof((condition));}while(SDL_NULL_WHILE_LOOP_CONDITION)

See Also