mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
coccinelle: add g_assert_cmp* to macro file
This helps applying semantic patches to unit tests. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@ -117,3 +117,9 @@ struct { \
|
|||||||
type *tqe_next; /* next element */ \
|
type *tqe_next; /* next element */ \
|
||||||
type **tqe_prev; /* address of previous next element */ \
|
type **tqe_prev; /* address of previous next element */ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* From glib */
|
||||||
|
#define g_assert_cmpint(a, op, b) g_assert(a op b)
|
||||||
|
#define g_assert_cmpuint(a, op, b) g_assert(a op b)
|
||||||
|
#define g_assert_cmphex(a, op, b) g_assert(a op b)
|
||||||
|
#define g_assert_cmpstr(a, op, b) g_assert(strcmp(a, b) op 0)
|
||||||
|
Reference in New Issue
Block a user