Lines Matching refs:pointer
124 #define TEST_CALLOC(pointer, item_count) \
126 TEST_ASSERT((pointer) == NULL); \
128 (pointer) = mbedtls_calloc((item_count), \
129 sizeof(*(pointer))); \
130 TEST_ASSERT((pointer) != NULL); \
155 #define TEST_CALLOC_NONNULL(pointer, item_count) \
157 TEST_ASSERT((pointer) == NULL); \
158 (pointer) = mbedtls_calloc((item_count), \
159 sizeof(*(pointer))); \
160 if (((pointer) == NULL) && ((item_count) == 0)) { \
161 (pointer) = mbedtls_calloc(1, 1); \
163 TEST_ASSERT((pointer) != NULL); \
167 #define ASSERT_ALLOC(pointer, item_count) TEST_CALLOC(pointer, item_count)
174 #define TEST_CALLOC_OR_SKIP(pointer, item_count) \
176 TEST_ASSERT((pointer) == NULL); \
178 (pointer) = mbedtls_calloc((item_count), \
179 sizeof(*(pointer))); \
180 TEST_ASSUME((pointer) != NULL); \
185 #define ASSERT_ALLOC_WEAK(pointer, item_count) TEST_CALLOC_OR_SKIP(pointer, item_count)