v2.0.0
Loading...
Searching...
No Matches
buildinfo.h
Go to the documentation of this file.
1//=============================================================================================================
26
27#ifndef BUILD_INFO_LIB
28#define BUILD_INFO_LIB
29
30//=============================================================================================================
31// INCLUDES
32//=============================================================================================================
33
34#include <cstring>
35
36namespace UTILSLIB
37{
38
39//=============================================================================================================
45constexpr auto timeNowNow()
46{
47 return __TIME__;
48}
49
50//=============================================================================================================
56constexpr auto dateToday()
57{
58 return __DATE__;
59}
60
61//=============================================================================================================
68constexpr auto dateTimeNow()
69{
70 return __DATE__ " " __TIME__;
71}
72
73//=============================================================================================================
79constexpr auto gitHash()
80{
81#ifdef MNE_GIT_HASH_SHORT
82 return MNE_GIT_HASH_SHORT;
83#else
84 return "Git hash not defined.";
85#endif
86}
87
88//=============================================================================================================
94constexpr auto gitHashLong()
95{
96#ifdef MNE_GIT_HASH_LONG
97 return MNE_GIT_HASH_LONG;
98#else
99 return "Git hash long not defined.";
100#endif
101}
102
103}
104
105#endif
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
constexpr auto gitHashLong()
Definition buildinfo.h:94
constexpr auto gitHash()
Definition buildinfo.h:79
constexpr auto dateToday()
Definition buildinfo.h:56
constexpr auto timeNowNow()
Definition buildinfo.h:45
constexpr auto dateTimeNow()
Definition buildinfo.h:68