g_warn_if_fail: Document as always evaluating expr

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2024-02-28 18:13:16 +00:00
parent 0211f06be3
commit 88c76b89e0

View File

@ -552,6 +552,9 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func);
* *
* Logs a warning if the expression is not true. * 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 * Since: 2.16
*/ */
#define g_warn_if_fail(expr) \ #define g_warn_if_fail(expr) \