mirror of
https://github.com/espressif/tlsf.git
synced 2025-12-05 23:23:20 +00:00
Remove the call to tlsf_assert in the tlsf_insist maccro
In this commit: The call to tlsf_asssert is removed from tlsf_insist to allow the tlsf_check() function to return when one or more of the tlsf_insist() calls fails. In the previous implementation any failing tlsf_assist() was causing the tlsf_assert to terminate the execution of the application which doesn't allow the user to handle failures in tlsf_check() eventhough tlsf_check() returns a value.
This commit is contained in:
2
tlsf.c
2
tlsf.c
@@ -618,7 +618,7 @@ typedef struct integrity_t
|
|||||||
int status;
|
int status;
|
||||||
} integrity_t;
|
} integrity_t;
|
||||||
|
|
||||||
#define tlsf_insist(x) { tlsf_assert(x); if (!(x)) { status--; } }
|
#define tlsf_insist(x) { if (!(x)) { status--; } }
|
||||||
|
|
||||||
static void integrity_walker(void* ptr, size_t size, int used, void* user)
|
static void integrity_walker(void* ptr, size_t size, int used, void* user)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user