fix build with -DMAXTIME=123
This commit is contained in:
parent
35e7697474
commit
ce3bc006e7
|
@ -794,10 +794,11 @@ public:
|
||||||
*/
|
*/
|
||||||
static const Token * startOfExecutableScope(const Token * tok);
|
static const Token * startOfExecutableScope(const Token * tok);
|
||||||
|
|
||||||
static bool isMaxTime() {
|
|
||||||
#ifdef MAXTIME
|
#ifdef MAXTIME
|
||||||
|
bool isMaxTime() const {
|
||||||
return (std::time(0) > maxtime);
|
return (std::time(0) > maxtime);
|
||||||
#else
|
#else
|
||||||
|
static bool isMaxTime() {
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue