SDL Wiki

SDL_VERSION_ATLEAST

Use this macro to determine whether the SDL version compiled against is at least as new as the specified version.

Syntax

SDL_VERSION_ATLEAST(X, Y, Z)

Function Parameters

X

major version

Y

minor version

Z

update version (patchlevel)

Return Value

This macro will evaluate to true if compiled with SDL version at least X.Y.Z.

Code Examples

if (! SDL_VERSION_ATLEAST(2,0,0)) {
    SDL_Log("SDL_VERSION %i is less than 2.0.0", SDL_MAJOR_VERSION);
    return 1;
}
SDL_COMPILEDVERSION
SDL_VERSIONNUM

CategoryAPI, CategoryVersion


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.