Lines Matching refs:a
76 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) argument
114 #define ASSERT_BASE(a, operator, b, type, conv) \ argument
116 volatile type eval_a = (type) (a); \
124 #a, \
134 #define ASSERT_BASE_STR(expr, a, operator, b, type, conv) \ argument
142 #a, \
145 (type)a, \
152 #define ASSERT_BASE_LEN(expr, a, operator, b, conv, len) \ argument
160 #a, \
164 a, \
172 #define ASSERT_BASE_HEX(expr, a, operator, b, size) \ argument
176 unsigned char* a_ = (unsigned char*)a; \
182 #a, \
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
205 #define ASSERT_OK(a) ASSERT_BASE(a, ==, 0, 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)
239 #define ASSERT_NULL(a) \ argument
240 ASSERT_BASE(a, ==, NULL, void*, "p")
242 #define ASSERT_NOT_NULL(a) \ argument
243 ASSERT_BASE(a, !=, NULL, void*, "p")
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")