Skip to content

Commit

Permalink
update version macro name
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffaello committed Nov 11, 2023
1 parent b48aa32 commit 692501f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ namespace HyperSonicDrivers::utils
{
const char* getVersion()
{
return __SONIC_DRIVERS_VERSION;
return __HYPER_SONIC_DRIVERS_VERSION;
}
int getVersionMajor()
{
return __SONIC_DRIVERS_VERSION_MAJOR;
return __HYPER_SONIC_DRIVERS_VERSION_MAJOR;
}
int getVersionMinor()
{
return __SONIC_DRIVERS_VERSION_MINOR;
return __HYPER_SONIC_DRIVERS_VERSION_MINOR;
}
int getVersionPatch()
{
return __SONIC_DRIVERS_VERSION_PATCH;
return __HYPER_SONIC_DRIVERS_VERSION_PATCH;
}
}
8 changes: 4 additions & 4 deletions sdl2-hyper-sonic-drivers/version.h.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef __VERSION_H__
#define __VERSION_H__

#define __SONIC_DRIVERS_VERSION "${CMAKE_PROJECT_VERSION}"
#define __SONIC_DRIVERS_VERSION_MAJOR ${CMAKE_PROJECT_VERSION_MAJOR}
#define __SONIC_DRIVERS_VERSION_MINOR ${CMAKE_PROJECT_VERSION_MINOR}
#define __SONIC_DRIVERS_VERSION_PATCH ${CMAKE_PROJECT_VERSION_PATCH}
#define __HYPER_SONIC_DRIVERS_VERSION "${CMAKE_PROJECT_VERSION}"
#define __HYPER_SONIC_DRIVERS_VERSION_MAJOR ${CMAKE_PROJECT_VERSION_MAJOR}
#define __HYPER_SONIC_DRIVERS_VERSION_MINOR ${CMAKE_PROJECT_VERSION_MINOR}
#define __HYPER_SONIC_DRIVERS_VERSION_PATCH ${CMAKE_PROJECT_VERSION_PATCH}

#endif

0 comments on commit 692501f

Please sign in to comment.