D | test.h | 3 #define assert_cmp(t, a, b, cmp, neg_cmp, pri, ...) do { \ argument 20 #define assert_ptr_eq(a, b, ...) assert_cmp(void *, a, b, ==, \ argument 22 #define assert_ptr_ne(a, b, ...) assert_cmp(void *, a, b, !=, \ argument 29 #define assert_c_eq(a, b, ...) assert_cmp(char, a, b, ==, !=, "c", __VA_ARGS__) argument 30 #define assert_c_ne(a, b, ...) assert_cmp(char, a, b, !=, ==, "c", __VA_ARGS__) argument 31 #define assert_c_lt(a, b, ...) assert_cmp(char, a, b, <, >=, "c", __VA_ARGS__) argument 32 #define assert_c_le(a, b, ...) assert_cmp(char, a, b, <=, >, "c", __VA_ARGS__) argument 33 #define assert_c_ge(a, b, ...) assert_cmp(char, a, b, >=, <, "c", __VA_ARGS__) argument 34 #define assert_c_gt(a, b, ...) assert_cmp(char, a, b, >, <=, "c", __VA_ARGS__) argument 36 #define assert_x_eq(a, b, ...) assert_cmp(int, a, b, ==, !=, "#x", __VA_ARGS__) argument [all …]
|