From 88c76b89e054af5cb4d0e7e0ebbd83d7e8a4fa93 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 28 Feb 2024 18:13:16 +0000 Subject: [PATCH] g_warn_if_fail: Document as always evaluating expr Signed-off-by: Simon McVittie --- glib/gmessages.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glib/gmessages.h b/glib/gmessages.h index 8307ec8f6..4867cdcb9 100644 --- a/glib/gmessages.h +++ b/glib/gmessages.h @@ -552,6 +552,9 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func); * * Logs a warning if the expression is not true. * + * Unlike g_return_if_fail(), the expression is always evaluated, even if + * checks and assertions are disabled. + * * Since: 2.16 */ #define g_warn_if_fail(expr) \