* @brief Internal implementation of array_find_if. */
| 256 | |
| 257 | |
| 258 | /** |
| 259 | * @brief Finds an element in the array using the provided comparator. |
| 260 | */ |
| 261 | #define array_find(arr, key, cmp) \ |
| 262 | arrayp_find_impl((arr).data, array_size(arr), sizeof((arr).data[0]), (key), (cmp)) |
| 263 | |
| 264 | |
| 265 | /** |
| 266 | * @brief Internal implementation of array_find_if. |
| 267 | */ |
| 268 | static inline void *arrayp_find_if_impl(const void *data, size_t count, size_t elem_size, |
| 269 | bool (*predicate)(const void*)) { |
nothing calls this directly
no outgoing calls
no test coverage detected