mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-08 06:43:13 +00:00
tests, hb-test.h: define g_assert_false && g_assert_nonnull for old glib
Reference issue: https://github.com/harfbuzz/harfbuzz/issues/4577 Reference issue: https://github.com/harfbuzz/harfbuzz/issues/4624
This commit is contained in:
parent
98747fdec8
commit
dbecddb41c
1 changed files with 6 additions and 0 deletions
|
@ -172,6 +172,12 @@ typedef void (*hb_test_fixture_func_t) (void);
|
|||
#ifndef g_assert_true
|
||||
#define g_assert_true g_assert
|
||||
#endif
|
||||
#ifndef g_assert_false
|
||||
#define g_assert_false(expr) g_assert(!(expr))
|
||||
#endif
|
||||
#ifndef g_assert_nonnull
|
||||
#define g_assert_nonnull g_assert
|
||||
#endif
|
||||
#ifndef g_assert_cmpmem
|
||||
#define g_assert_cmpmem(m1, l1, m2, l2) g_assert_true (l1 == l2 && memcmp (m1, m2, l1) == 0)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue