MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
buildinfo.h
Go to the documentation of this file.
1//=============================================================================================================
36#ifndef BUILD_INFO_LIB
37#define BUILD_INFO_LIB
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include <cstring>
44
45namespace UTILSLIB{
46
47//=============================================================================================================
51constexpr auto timeNowNow()
52{
53 return __TIME__;
54}
55
56//=============================================================================================================
60constexpr auto dateToday()
61{
62 return __DATE__;
63}
64
65//=============================================================================================================
70constexpr auto dateTimeNow()
71{
72 return __DATE__ " " __TIME__;
73}
74
75//=============================================================================================================
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//=============================================================================================================
92constexpr auto gitHashLong()
93{
94#ifdef MNE_GIT_HASH_LONG
95 return MNE_GIT_HASH_LONG;
96#else
97 return "Git hash long not defined.";
98#endif
99}
100
101}
102
103#endif
constexpr auto gitHashLong()
Definition buildinfo.h:92
constexpr auto gitHash()
Definition buildinfo.h:79
constexpr auto dateToday()
Definition buildinfo.h:60
constexpr auto timeNowNow()
Definition buildinfo.h:51
constexpr auto dateTimeNow()
Definition buildinfo.h:70