aboutsummaryrefslogtreecommitdiff
path: root/src/processor
diff options
context:
space:
mode:
authorJoshua Peraza <jperaza@chromium.org>2018-10-12 09:19:13 -0700
committerJoshua Peraza <jperaza@chromium.org>2018-10-12 17:49:54 +0000
commit66571f4838b2306161f072555cb199049bc68142 (patch)
tree2c29433a5a9e5e64bbb65763cb5aa73496984714 /src/processor
parentAdds method to get the date of the most recent iOS crash report. (diff)
downloadbreakpad-66571f4838b2306161f072555cb199049bc68142.tar.xz
Conditionally define BPLOG_IF
This allows BPLOG_IF to be overriden by defines in BP_LOGGING_INCLUDE. Change-Id: Ic6e8373476cc4d1f73d55e13a23686a2c8309fdc Reviewed-on: https://chromium-review.googlesource.com/c/1278104 Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
Diffstat (limited to 'src/processor')
-rw-r--r--src/processor/logging.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/processor/logging.h b/src/processor/logging.h
index 97c2fe31..af539a4f 100644
--- a/src/processor/logging.h
+++ b/src/processor/logging.h
@@ -190,7 +190,9 @@ int ErrnoString(string *error_string);
__FILE__, __LINE__)
#endif // BPLOG_CRITICAL
+#ifndef BPLOG_IF
#define BPLOG_IF(severity, condition) \
BPLOG_LAZY_STREAM(severity, ((condition) && BPLOG_LOG_IS_ON(severity)))
+#endif // BPLOG_IF
#endif // PROCESSOR_LOGGING_H__