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:
Guillaume Souchere
2022-08-09 13:14:11 +02:00
parent 9393b12cac
commit 0fcb10c71a

2
tlsf.c
View File

@@ -618,7 +618,7 @@ typedef struct integrity_t
int status;
} 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)
{