Merge branch 'wip/smcv/warn-if-fail' into 'main'

g_warn_if_fail: Document as always evaluating expr

See merge request GNOME/glib!3951
This commit is contained in:
Philip Withnall 2024-03-05 12:25:42 +00:00
commit 04abb73732

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) \