Skip to content

Commit

Permalink
Small tweaks, export for all libs not just shared, make version numbe…
Browse files Browse the repository at this point in the history
…r functions unsigned integers
  • Loading branch information
Cliff Foster committed Mar 1, 2024
1 parent bb07a5f commit 9ab7ee0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/base/include/template_project/__version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace @__idi_namespace@::base {
*
* @return int32_t
*/
inline consteval int32_t get_version_major() {
inline consteval uint32_t get_version_major() {
return @__idi_c_caps_namespace@_VERSION_MAJOR;
}

Expand All @@ -30,7 +30,7 @@ namespace @__idi_namespace@::base {
*
* @return int32_t
*/
inline consteval int32_t get_version_minor() {
inline consteval uint32_t get_version_minor() {
return @__idi_c_caps_namespace@_VERSION_MINOR;
}

Expand All @@ -39,7 +39,7 @@ namespace @__idi_namespace@::base {
*
* @return int32_t
*/
inline consteval int32_t get_version_patch() {
inline consteval uint32_t get_version_patch() {
return @__idi_c_caps_namespace@_VERSION_PATCH;
}

Expand Down
4 changes: 2 additions & 2 deletions src/base/include/template_project/public/__export.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "platform_config.h"

#ifdef @__idi_c_caps_namespace@_IS_SHARED
#ifdef @__idi_c_caps_namespace@_IS_LIBRARY

#ifdef _WIN32
#define @__idi_c_caps_namespace@_EXPORT __declspec(dllexport)
Expand All @@ -23,5 +23,5 @@

#define @__idi_c_caps_namespace@_EXPORT

#endif // @__idi_c_caps_namespace@_IS_SHARED
#endif // @__idi_c_caps_namespace@_IS_LIBRARY
// NOLINTEND
6 changes: 3 additions & 3 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
*/
inline @__idi_c_caps_namespace@_EXPORT int32_t @__idi_c_namespace@_get_version_major() {
inline @__idi_c_caps_namespace@_EXPORT uint32_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
*/
inline @__idi_c_caps_namespace@_EXPORT int32_t @__idi_c_namespace@_get_version_minor() {
inline @__idi_c_caps_namespace@_EXPORT uint32_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
*/
inline @__idi_c_caps_namespace@_EXPORT int32_t @__idi_c_namespace@_get_version_patch() {
inline @__idi_c_caps_namespace@_EXPORT uint32_t @__idi_c_namespace@_get_version_patch() {
return @__idi_c_caps_namespace@_VERSION_PATCH;
}

Expand Down

0 comments on commit 9ab7ee0

Please sign in to comment.