SDL_VERSIONNUM_MAJOR - Man Page
This macro extracts the major version from a version number
Synopsis
#include <SDL3/SDL_version.h> #define SDL_VERSIONNUM_MAJOR(version) ((version) / 1000000)
Description
1002003 becomes 1.
Macro Parameters
- version
the version number.
Thread Safety
It is safe to call this macro from any thread.
Availability
This macro is available since SDL 3.2.0.
Info
SDL 3.4.8 Simple Directmedia Layer SDL3 FUNCTIONS