]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
test-utils-glib: Add backports of some convenience macros
authorSimon McVittie <smcv@collabora.com>
Wed, 2 Mar 2022 13:04:11 +0000 (13:04 +0000)
committerSimon McVittie <smcv@collabora.com>
Thu, 21 Apr 2022 10:02:44 +0000 (11:02 +0100)
Signed-off-by: Simon McVittie <smcv@collabora.com>
test/test-utils-glib.h

index ee642033e3949c6fa235f5ea726364cb4e80d84e..eda468b9ec1eac908dbd2b6fc786d13c22fcb055 100644 (file)
@@ -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