logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

Description

       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.

       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.

Header File

       Defined in SDL3/SDL_version.h

Name

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

Return Value

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

See Also

(3), SDL_GetVersion(3)

Simple Directmedia Layer                           SDL 3.2.10                                 SDL_GetRevision(3)

Synopsis

#include"SDL3/SDL.h"constchar*SDL_GetRevision(void);

See Also