[Intel-gfx] [PATCH i-g-t 13/18] docs: Add documentation for igt_assert_cmpuint()

Damien Lespiau damien.lespiau at intel.com
Sat Jun 27 08:08:11 PDT 2015


Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 lib/igt_core.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/igt_core.h b/lib/igt_core.h
index f5c7194..583a761 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -346,6 +346,15 @@ void igt_exit(void) __attribute__((noreturn));
 				  "error: %d " #ncmp " %d\n", __n1, __n2); \
 	} 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) \
 	do { \
 		uint32_t __n1 = (n1), __n2 = (n2); \
-- 
2.1.0



More information about the Intel-gfx mailing list