Add GetRaylibVersionString() to core.c and raylib.h.

This commit is contained in:
Aldrin Martoq 2019-12-02 01:28:31 -03:00
parent 95f3b6e18e
commit 8339c26c08
2 changed files with 17 additions and 0 deletions

View File

@ -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
//----------------------------------------------------------------------------------

View File

@ -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)
//------------------------------------------------------------------------------------