SDL_VERSIONNUM - Man Page

This macro turns the version numbers into a numeric value.

Header File

Defined in SDL3/SDL_version.h

Synopsis

#include "SDL3/SDL.h"

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

Description

(1,2,3) becomes 1002003.

Availability

This macro is available since SDL 3.2.0.

Info

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS