Conditionally define BPLOG_LAZY_STREAM

This allows BPLOG_LAZY_STREAM to be overridden by BP_LOGGING_INCLUDE

Change-Id: I5c9ec19b619ad5db9e97f3a1813b0f965a357b38
Reviewed-on: https://chromium-review.googlesource.com/c/1351361
Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
This commit is contained in:
Joshua Peraza 2018-11-26 15:12:38 -08:00
parent e42f2456b7
commit 3bc301d4f9

View File

@ -147,9 +147,11 @@ int ErrnoString(string *error_string);
#define BPLOG_INIT(pargc, pargv)
#endif // BPLOG_INIT
#ifndef BPLOG_LAZY_STREAM
#define BPLOG_LAZY_STREAM(stream, condition) \
!(condition) ? (void) 0 : \
google_breakpad::LogMessageVoidify() & (BPLOG_ ## stream)
#endif
#ifndef BPLOG_MINIMUM_SEVERITY
#define BPLOG_MINIMUM_SEVERITY SEVERITY_INFO