summaryrefslogtreecommitdiff
path: root/absl/status/internal/status_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'absl/status/internal/status_internal.h')
-rw-r--r--absl/status/internal/status_internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/absl/status/internal/status_internal.h b/absl/status/internal/status_internal.h
index 34914d2e..fc1e78bc 100644
--- a/absl/status/internal/status_internal.h
+++ b/absl/status/internal/status_internal.h
@@ -69,6 +69,15 @@ struct StatusRep {
};
absl::StatusCode MapToLocalCode(int value);
+
+// If `status` is not OK, returns a pointer to a newly-allocated string with the
+// given `prefix`, suitable for output as an error message in assertion/CHECK()
+// failures. Otherwise returns nullptr.
+//
+// This is an internal implementation detail for Abseil logging.
+std::string* MakeCheckFailString(const absl::Status& status,
+ const char* prefix);
+
} // namespace status_internal
ABSL_NAMESPACE_END