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_GetRevision

Get the code revision of SDL that is linked against your program.

Syntax

const char* SDL_GetRevision(void);

Return Value

Returns an arbitrary string, uniquely identifying the exact revision of the SDL library in use.

Remarks

This value is the revision of the code you are linked with and may be different from the code you are compiling with, which is found in the constant SDL_REVISION.

The revision is arbitrary string (a hash value) uniquely identifying the exact revision of the SDL library in use, and is only useful in comparing against other revisions. It is NOT an incrementing number.

If SDL wasn't built from a git repository with the appropriate tools, this will return an empty string.

Prior to SDL 2.0.16, before development moved to GitHub, this returned a hash for a Mercurial repository.

You shouldn't use this function for anything but logging it for debugging purposes. The string is not intended to be reliable in any way.

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.