Scroll to navigation

SDL_VERSIONNUM_MAJOR(3) SDL3 FUNCTIONS SDL_VERSIONNUM_MAJOR(3)

NAME

SDL_VERSIONNUM_MAJOR - 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

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.

SDL 3.4.2 Simple Directmedia Layer