Skip to content

Commit

Permalink
Inline version (#569)
Browse files Browse the repository at this point in the history
* adding inline

* adding inline
  • Loading branch information
K20shores authored Jun 18, 2024
1 parent 7b20b04 commit 401add1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions include/micm/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ namespace micm {
extern "C" {
#endif

const char* GetMicmVersion()
inline const char* GetMicmVersion()
{
return "3.5.0";
}
unsigned GetMicmVersionMajor()
inline unsigned GetMicmVersionMajor()
{
return 3;
}
unsigned GetMicmVersionMinor()
inline unsigned GetMicmVersionMinor()
{
return 5+0;
}
unsigned GetMicmVersionPatch()
inline unsigned GetMicmVersionPatch()
{
return 0+0;
}
unsigned GetMicmVersionTweak()
inline unsigned GetMicmVersionTweak()
{
return +0;
}
Expand Down
10 changes: 5 additions & 5 deletions src/version.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ namespace micm {
extern "C" {
#endif

const char* GetMicmVersion()
inline const char* GetMicmVersion()
{
return "@micm_VERSION@";
}
unsigned GetMicmVersionMajor()
inline unsigned GetMicmVersionMajor()
{
return @micm_VERSION_MAJOR@;
}
unsigned GetMicmVersionMinor()
inline unsigned GetMicmVersionMinor()
{
return @micm_VERSION_MINOR@+0;
}
unsigned GetMicmVersionPatch()
inline unsigned GetMicmVersionPatch()
{
return @micm_VERSION_PATCH@+0;
}
unsigned GetMicmVersionTweak()
inline unsigned GetMicmVersionTweak()
{
return @micm_VERSION_TWEAK@+0;
}
Expand Down

0 comments on commit 401add1

Please sign in to comment.