(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)

SDL_MAJOR_VERSION

The current version of SDL

Header File

Defined in <SDL3/SDL_version.h>

Syntax

#define SDL_MAJOR_VERSION   3

CategoryAPI, CategoryAPIMacro, CategoryVersion