Skip to content

Commit 0aed0fa

Browse files
authored
Merge pull request #9 from Serial-IO/improve-version-struct-for-better-debugging
Enhance Version struct in get_version.h
2 parents 72c5347 + 6f1fd4c commit 0aed0fa

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

include/cpp_core/interface/get_version.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ extern "C"
1111
{
1212
struct Version
1313
{
14-
int major = version::MAJOR;
15-
int minor = version::MINOR;
16-
int patch = version::PATCH;
14+
int major = version::MAJOR;
15+
int minor = version::MINOR;
16+
int patch = version::PATCH;
17+
const char *commit_hash_short = version::GIT_COMMIT_HASH_SHORT;
18+
const char *commit_hash_full = version::GIT_COMMIT_HASH_FULL;
19+
const char *commit_date = version::GIT_COMMIT_DATE;
20+
const char *branch = version::GIT_BRANCH;
21+
const char *version_string = version::VERSION;
1722
};
1823
} // namespace cpp_core
1924

0 commit comments

Comments
 (0)