SDL_VERSIONNUM_MAJOR(3)

SDL_VERSIONNUM_MAJOR3

This macro extracts the major version from a version number

Usage

#include "SDL3/SDL.h"

#define SDL_VERSIONNUM_MAJOR(version) ((version) / 1000000)

Header file

Defined in SDL3/SDL_version.h

Overview

1002003 becomes 1.

Availability

This macro is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.