Wiki Page Content


Use this function to get the code revision of SDL that is linked against your program.


const char* SDL_GetRevision(void)

Return Value

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

Code Examples

You can add your code example here


The revision is a string including sequential revision number that is incremented with each commit, and a hash of the last code change.

  • Example: hg-5344:94189aa89b54

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.

CategoryAPI, CategoryVersion

None: SDL_GetRevision (last edited 2011-02-18 18:04:17 by SheenaSmith)

Please include your contact information if you'd like to receive a reply.