pub unsafe extern "C" fn multi_heap_check(
    heap: multi_heap_handle_t,
    print_errors: bool
) -> bool
Expand description

@brief Check heap integrity

Walks the heap and checks all heap data structures are valid. If any errors are detected, an error-specific message can be optionally printed to stderr. Print behaviour can be overridden at compile time by defining MULTI_CHECK_FAIL_PRINTF in multi_heap_platform.h.

@note This function is not thread-safe as it sets a global variable with the value of print_errors.

@param heap Handle to a registered heap. @param print_errors If true, errors will be printed to stderr. @return true if heap is valid, false otherwise.