Fix build failure in the MOBILEAPP case

We never exit an app process intentionally, so Log::isShutdownCalled()
can always return false.

Change-Id: I6b3cce85ccac5e3ffbb7b29ca552cb9e4441df2a
Reviewed-on: https://gerrit.libreoffice.org/78979
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
This commit is contained in:
Tor Lillqvist
2019-09-16 12:29:22 +03:00
parent 71a942c24b
commit f89264047c
2 changed files with 3 additions and 1 deletions

View File

@ -225,12 +225,12 @@ namespace Log
std::flush(std::cerr);
fflush(stderr);
}
#endif
bool isShutdownCalled()
{
return IsShutdown;
}
#endif
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -61,6 +61,8 @@ namespace Log
void shutdown();
/// Was static shutdown() called? If so, producing more logs should be avoided.
bool isShutdownCalled();
#else
constexpr bool isShutdownCalled() { return false; }
#endif
char* prefix(char* buffer, std::size_t len, const char* level);