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//=============================================================================================================
42constexpr auto timeNowNow()
43{
44 return __TIME__;
45}
46
47//=============================================================================================================
51constexpr auto dateToday()
52{
53 return __DATE__;
54}
55
56//=============================================================================================================
61constexpr auto dateTimeNow()
62{
63 return __DATE__ " " __TIME__;
64}
65
66//=============================================================================================================
70constexpr auto gitHash()
71{
72#ifdef MNE_GIT_HASH_SHORT
73 return MNE_GIT_HASH_SHORT;
74#else
75 return "Git hash not defined.";
76#endif
77}
78
79//=============================================================================================================
83constexpr auto gitHashLong()
84{
85#ifdef MNE_GIT_HASH_LONG
86 return MNE_GIT_HASH_LONG;
87#else
88 return "Git hash long not defined.";
89#endif
90}
91
92}
93
94#endif
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
constexpr auto gitHashLong()
Definition buildinfo.h:83
constexpr auto gitHash()
Definition buildinfo.h:70
constexpr auto dateToday()
Definition buildinfo.h:51
constexpr auto timeNowNow()
Definition buildinfo.h:42
constexpr auto dateTimeNow()
Definition buildinfo.h:61