Lines Matching refs:b
114 #define ASSERT_BASE(a, operator, b, type, conv) \ argument
117 volatile type eval_b = (type) (b); \
126 #b, \
134 #define ASSERT_BASE_STR(expr, a, operator, b, type, conv) \ argument
144 #b, \
147 (type)b); \
152 #define ASSERT_BASE_LEN(expr, a, operator, b, conv, len) \ argument
162 #b, \
167 b); \
172 #define ASSERT_BASE_HEX(expr, a, operator, b, size) \ argument
177 unsigned char* b_ = (unsigned char*)b; \
184 #b); \
199 #define ASSERT_EQ(a, b) ASSERT_BASE(a, ==, b, int64_t, PRId64) argument
200 #define ASSERT_GE(a, b) ASSERT_BASE(a, >=, b, int64_t, PRId64) argument
201 #define ASSERT_GT(a, b) ASSERT_BASE(a, >, b, int64_t, PRId64) argument
202 #define ASSERT_LE(a, b) ASSERT_BASE(a, <=, b, int64_t, PRId64) argument
203 #define ASSERT_LT(a, b) ASSERT_BASE(a, <, b, int64_t, PRId64) argument
204 #define ASSERT_NE(a, b) ASSERT_BASE(a, !=, b, int64_t, PRId64) argument
207 #define ASSERT_UINT64_EQ(a, b) ASSERT_BASE(a, ==, b, uint64_t, PRIu64) argument
208 #define ASSERT_UINT64_GE(a, b) ASSERT_BASE(a, >=, b, uint64_t, PRIu64) argument
209 #define ASSERT_UINT64_GT(a, b) ASSERT_BASE(a, >, b, uint64_t, PRIu64) argument
210 #define ASSERT_UINT64_LE(a, b) ASSERT_BASE(a, <=, b, uint64_t, PRIu64) argument
211 #define ASSERT_UINT64_LT(a, b) ASSERT_BASE(a, <, b, uint64_t, PRIu64) argument
212 #define ASSERT_UINT64_NE(a, b) ASSERT_BASE(a, !=, b, uint64_t, PRIu64) argument
214 #define ASSERT_DOUBLE_EQ(a, b) ASSERT_BASE(a, ==, b, double, "f") argument
215 #define ASSERT_DOUBLE_GE(a, b) ASSERT_BASE(a, >=, b, double, "f") argument
216 #define ASSERT_DOUBLE_GT(a, b) ASSERT_BASE(a, >, b, double, "f") argument
217 #define ASSERT_DOUBLE_LE(a, b) ASSERT_BASE(a, <=, b, double, "f") argument
218 #define ASSERT_DOUBLE_LT(a, b) ASSERT_BASE(a, <, b, double, "f") argument
219 #define ASSERT_DOUBLE_NE(a, b) ASSERT_BASE(a, !=, b, double, "f") argument
221 #define ASSERT_STR_EQ(a, b) \ argument
222 ASSERT_BASE_STR(strcmp(a, b) == 0, a, == , b, char*, "s")
224 #define ASSERT_STR_NE(a, b) \ argument
225 ASSERT_BASE_STR(strcmp(a, b) != 0, a, !=, b, char*, "s")
227 #define ASSERT_MEM_EQ(a, b, size) \ argument
228 ASSERT_BASE_LEN(memcmp(a, b, size) == 0, a, ==, b, s, size)
230 #define ASSERT_MEM_NE(a, b, size) \ argument
231 ASSERT_BASE_LEN(memcmp(a, b, size) != 0, a, !=, b, s, size)
233 #define ASSERT_MEM_HEX_EQ(a, b, size) \ argument
234 ASSERT_BASE_HEX(memcmp(a, b, size) == 0, a, ==, b, size)
236 #define ASSERT_MEM_HEX_NE(a, b, size) \ argument
237 ASSERT_BASE_HEX(memcmp(a, b, size) != 0, a, !=, b, size)
245 #define ASSERT_PTR_EQ(a, b) \ argument
246 ASSERT_BASE(a, ==, b, void*, "p")
248 #define ASSERT_PTR_NE(a, b) \ argument
249 ASSERT_BASE(a, !=, b, void*, "p")
251 #define ASSERT_PTR_LT(a, b) \ argument
252 ASSERT_BASE(a, <, b, void*, "p")