pub unsafe extern "C" fn heap_caps_register_failed_alloc_callback(
    callback: Option<unsafe extern "C" fn(_: usize, _: u32, _: *const i8)>
) -> i32
Expand description

@brief registers a callback function to be invoked if a memory allocation operation fails @param callback caller defined callback to be invoked @return ESP_OK if callback was registered.