raw_logging: Document that AbortHook's buffers live for as long as the process remains alive.

PiperOrigin-RevId: 446725910
Change-Id: I291fa8c1c41155b1530969f64b2b7f44b1576c92
pull/1163/merge
Andy Getzendanner 3 years ago committed by Copybara-Service
parent 173dfe4a4c
commit d3f0c70673
  1. 3
      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' // 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 // and 'buf_end'. 'prefix_end' points to the first non-prefix character of the
// buffer (as written by the LogFilterAndPrefixHook.) // 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, using AbortHook = void (*)(const char* file, int line, const char* buf_start,
const char* prefix_end, const char* buf_end); const char* prefix_end, const char* buf_end);

Loading…
Cancel
Save