diff --git a/src/core.c b/src/core.c index c82a06130..7a8440985 100644 --- a/src/core.c +++ b/src/core.c @@ -533,6 +533,16 @@ static void *GamepadThread(void *arg); // Mouse reading thread void __stdcall Sleep(unsigned long msTimeout); // Required for Wait() #endif +//---------------------------------------------------------------------------------- +// Misc Functions Definition - Raylib info +//---------------------------------------------------------------------------------- + +// Returns the current version string, for example: "2.6" +const char *GetRaylibVersionString(void) +{ + return RAYLIB_VERSION; +} + //---------------------------------------------------------------------------------- // Module Functions Definition - Window and OpenGL Context Functions //---------------------------------------------------------------------------------- diff --git a/src/raylib.h b/src/raylib.h index 1dfcdc64d..c188fe3eb 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -855,6 +855,13 @@ extern "C" { // Prevents name mangling of functions //------------------------------------------------------------------------------------ // It's lonely here... +//------------------------------------------------------------------------------------ +// Misc Functions (Module: core) +//------------------------------------------------------------------------------------ + +// Raylib info +RLAPI const char *GetRaylibVersionString(void); // Returns the current version string, for example: "2.6" + //------------------------------------------------------------------------------------ // Window and Graphics Device Functions (Module: core) //------------------------------------------------------------------------------------