From: Simon McVittie Date: Wed, 2 Mar 2022 13:04:11 +0000 (+0000) Subject: test-utils-glib: Add backports of some convenience macros X-Git-Tag: dbus-1.15.0~72^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a4a89ccea6035c61998f58080ce53f7151853fa;p=thirdparty%2Fdbus.git test-utils-glib: Add backports of some convenience macros Signed-off-by: Simon McVittie --- diff --git a/test/test-utils-glib.h b/test/test-utils-glib.h index ee642033e..eda468b9e 100644 --- a/test/test-utils-glib.h +++ b/test/test-utils-glib.h @@ -126,6 +126,18 @@ backported_g_steal_pointer (gpointer pointer_to_pointer) } #endif +#ifndef g_assert_true +#define g_assert_true(a) g_assert (a) +#endif + +#ifndef g_assert_false +#define g_assert_false(a) g_assert (!(a)) +#endif + +#ifndef g_assert_null +#define g_assert_null(a) g_assert ((a) == NULL) +#endif + #ifndef g_assert_nonnull #define g_assert_nonnull(a) g_assert ((a) != NULL) #endif