diff options
author | Simon McVittie <smcv@collabora.com> | 2022-03-02 13:04:11 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-04-21 11:02:44 +0100 |
commit | 6a4a89ccea6035c61998f58080ce53f7151853fa (patch) | |
tree | 1a924ccab995e6f6e6a751aafc4fcfed218404dd /test | |
parent | b7c325e57330fce94ab80b80e083b1f6d12c0cb1 (diff) |
test-utils-glib: Add backports of some convenience macros
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/test-utils-glib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test-utils-glib.h b/test/test-utils-glib.h index ee642033..eda468b9 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 |