SDL_VERSIONNUM(3)

SDL_VERSIONNUM3

This macro turns the version numbers into a numeric value.

Usage

#include "SDL3/SDL.h"

#define SDL_VERSIONNUM(major, minor, patch) .BI ((major)*1000000+(minor)*1000+(patch))

Header file

Defined in SDL3/SDL_version.h

Overview

(1,2,3) becomes 1002003.

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.