This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

SDL_VERSION

Use this macro to determine the SDL version your program was compiled against.

Syntax

SDL_VERSION(x)

Function Parameters

x

an SDL_version structure to initialize

Return Value

Fills the selected struct with:

(x)->major = SDL_MAJOR_VERSION
(x)->minor = SDL_MINOR_VERSION
(x)->patch = SDL_PATCHLEVEL

Code Examples

<<Include(SDL_GetVersion, , , from="== Code Examples ==", to="== Remarks")>>

Remarks

This macro fills in an SDL_version structure with the version of the library you compiled against. This is determined by what header the compiler uses. Note that if you dynamically linked the library, you might have a slightly newer or older version at runtime. That version can be determined with SDL_GetVersion() which, unlike SDL_VERSION(), is not a macro.

SDL_version
SDL_GetVersion

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.