summaryrefslogtreecommitdiff
path: root/absl/base
diff options
context:
space:
mode:
authorGravatar Andy Getzendanner <durandal@google.com>2022-05-05 08:42:47 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-05-05 08:43:24 -0700
commitd3f0c70673ed71ba1581702bbbd0aa8865a575d1 (patch)
treed8c0ee9ce36137c126ec896637442c720819eaeb /absl/base
parent173dfe4a4c70f294a512aae4d0d0f5fc7db39241 (diff)
raw_logging: Document that AbortHook's buffers live for as long as the process remains alive.
PiperOrigin-RevId: 446725910 Change-Id: I291fa8c1c41155b1530969f64b2b7f44b1576c92
Diffstat (limited to 'absl/base')
-rw-r--r--absl/base/internal/raw_logging.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/absl/base/internal/raw_logging.h b/absl/base/internal/raw_logging.h
index 68a8bf21..0747c9df 100644
--- a/absl/base/internal/raw_logging.h
+++ b/absl/base/internal/raw_logging.h
@@ -161,6 +161,9 @@ using LogFilterAndPrefixHook = bool (*)(absl::LogSeverity severity,
// The NUL-terminated logged message lives in the buffer between 'buf_start'
// and 'buf_end'. 'prefix_end' points to the first non-prefix character of the
// buffer (as written by the LogFilterAndPrefixHook.)
+//
+// The lifetime of the filename and message buffers will not end while the
+// process remains alive.
using AbortHook = void (*)(const char* file, int line, const char* buf_start,
const char* prefix_end, const char* buf_end);