From 450d2c90009db0e86ec904a1e8be7747c7707775 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 21 Dec 2024 13:01:52 +0100 Subject: [PATCH] Update spec of M_MEMORY_FULL --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f2d5875b..16d0bb26 100644 --- a/README.md +++ b/README.md @@ -7876,9 +7876,9 @@ The pointer was previously allocated by the macro `M_MEMORY_REALLOC`. The default used function is the `free` function of the LIBC. -##### `void M_MEMORY_FULL (size_t size)` +##### `void M_MEMORY_FULL (type, number)` -This macro is called by M\*LIB when a memory error has been detected. +This macro is called by M\*LIB when a memory error has been detected when trying to allocate an array of `number` type `type`. The parameter `size` is what was tried to be allocated (as a hint). The macro can: