From 81d3c4962cc482023327a13bbbfc884421f0a00f Mon Sep 17 00:00:00 2001 From: pommicket Date: Thu, 11 Sep 2025 13:35:55 -0400 Subject: Clarify lifetimes --- pom.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pom.h b/pom.h index ca90568..1cad0ca 100644 --- a/pom.h +++ b/pom.h @@ -156,12 +156,16 @@ POM__MUST_USE_R; /// /// This will be a string such as `"Duplicate key: foo.bar"` /// +/// The returned pointer is valid until the error is freed. +/// /// See also \ref pom_error_print and \ref pom_error_to_string, which /// are probably actually what you want in most cases. const char * pom_error_message(const pom_error *error); /// Get the name of the file where this error occured. +/// +/// The returned pointer is valid until \ref pom_conf_free is called. const char * pom_error_file(const pom_error *error); -- cgit v1.2.3