version.cc
Go to the documentation of this file.
1 #include "ttg/util/version.h"
2 
3 namespace ttg {
4  std::array<int, 3> version() { return {TTG_MAJOR_VERSION, TTG_MINOR_VERSION, TTG_MICRO_VERSION}; }
5 
6  const char* git_revision() noexcept {
7  static const char revision[] = TTG_GIT_REVISION;
8  return revision;
9  }
10 
11  const char* git_description() noexcept {
12  static const char description[] = TTG_GIT_DESCRIPTION;
13  return description;
14  }
15 
16 } // namespace ttg
top-level TTG namespace contains runtime-neutral functionality
Definition: keymap.h:8
const char * git_description() noexcept
Definition: version.cc:11
std::array< int, 3 > version()
Definition: version.cc:4
const char * git_revision() noexcept
Definition: version.cc:6