mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-23 07:46:15 +00:00
docs: Add documentation for igt_assert_cmpuint()
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
f660d0a054
commit
23888526c7
@ -346,6 +346,15 @@ void igt_exit(void) __attribute__((noreturn));
|
|||||||
"error: %d " #ncmp " %d\n", __n1, __n2); \
|
"error: %d " #ncmp " %d\n", __n1, __n2); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* igt_assert_cmpuint:
|
||||||
|
* @n1: first value
|
||||||
|
* @cmp: compare operator
|
||||||
|
* @ncmp: negated version of @cmp
|
||||||
|
* @n2: second value
|
||||||
|
*
|
||||||
|
* Like igt_assert_cmpint(), but for unsigned ints;
|
||||||
|
*/
|
||||||
#define igt_assert_cmpuint(n1, cmp, ncmp, n2) \
|
#define igt_assert_cmpuint(n1, cmp, ncmp, n2) \
|
||||||
do { \
|
do { \
|
||||||
uint32_t __n1 = (n1), __n2 = (n2); \
|
uint32_t __n1 = (n1), __n2 = (n2); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user