Skip to content

Commit

Permalink
Forgot to inline C version functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cliff Foster committed Feb 29, 2024
1 parent ac8d1ef commit de6157b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/base/include/template_project/public/__version.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ extern "C"
* Get the major version number of the current version of the project.
* @return int32_t
*/
@__idi_c_caps_namespace@_EXPORT int32_t @__idi_c_namespace@_get_version_major() {
inline @__idi_c_caps_namespace@_EXPORT int32_t @__idi_c_namespace@_get_version_major() {
return @__idi_c_caps_namespace@_VERSION_MAJOR;
}

/**
* Get the minor version number of the current version of the project.
* @return int32_t
*/
@__idi_c_caps_namespace@_EXPORT int32_t @__idi_c_namespace@_get_version_minor() {
inline @__idi_c_caps_namespace@_EXPORT int32_t @__idi_c_namespace@_get_version_minor() {
return @__idi_c_caps_namespace@_VERSION_MINOR;
}

/**
* Get the patch version number of the current version of the project.
* @return int32_t
*/
@__idi_c_caps_namespace@_EXPORT int32_t @__idi_c_namespace@_get_version_patch() {
inline @__idi_c_caps_namespace@_EXPORT int32_t @__idi_c_namespace@_get_version_patch() {
return @__idi_c_caps_namespace@_VERSION_PATCH;
}

Expand All @@ -48,7 +48,7 @@ extern "C"
*
* @return const char *
*/
@__idi_c_caps_namespace@_EXPORT const char * @__idi_c_namespace@_get_git_hash_short() {
inline @__idi_c_caps_namespace@_EXPORT const char * @__idi_c_namespace@_get_git_hash_short() {
return @__idi_c_caps_namespace@_VERSION_GIT_HASH_SHORT;
}

Expand All @@ -57,7 +57,7 @@ extern "C"
*
* @return const char *
*/
@__idi_c_caps_namespace@_EXPORT const char * @__idi_c_namespace@_get_git_hash_long() {
inline @__idi_c_caps_namespace@_EXPORT const char * @__idi_c_namespace@_get_git_hash_long() {
return @__idi_c_caps_namespace@_VERSION_GIT_HASH_FULL;
}

Expand All @@ -67,7 +67,7 @@ extern "C"
*
* @return const char *
*/
@__idi_c_caps_namespace@_EXPORT const char * @__idi_c_namespace@_get_git_branch() {
inline @__idi_c_caps_namespace@_EXPORT const char * @__idi_c_namespace@_get_git_branch() {
return @__idi_c_caps_namespace@_VERSION_GIT_BRANCH;
}

Expand All @@ -77,7 +77,7 @@ extern "C"
* @return true If the git repo is dirty
* @return false If the git repo is not dirty
*/
@__idi_c_caps_namespace@_EXPORT bool @__idi_c_namespace@_get_git_is_dirty() {
inline @__idi_c_caps_namespace@_EXPORT bool @__idi_c_namespace@_get_git_is_dirty() {
return (@__idi_c_caps_namespace@_VERSION_GIT_DIRTY == 1);
}

Expand All @@ -88,7 +88,7 @@ extern "C"
*
* @return std::string reference to timestamp.
*/
@__idi_c_caps_namespace@_EXPORT const char * @__idi_c_namespace@_get_build_timestamp() {
inline @__idi_c_caps_namespace@_EXPORT const char * @__idi_c_namespace@_get_build_timestamp() {
return @__idi_c_caps_namespace@_BUILD_TIMESTAMP;
}

Expand Down

0 comments on commit de6157b

Please sign in to comment.