Man page - sdl_versionnum_major(3)

Packages contas this manual

Manual

SDL_VERSIONNUM_MAJOR(3) SDL3 FUNCTIONS SDL_VERSIONNUM_MAJOR(3)

SDL_VERSIONNUM_MAJOR - This macro extracts the major version from a version number

Defined in SDL3/SDL_version.h

#include "SDL3/SDL.h"
#define SDL_VERSIONNUM_MAJOR(version) ((version) / 1000000)

1002003 becomes 1.

This macro is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer