mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 01:58:32 -04:00
Declare vApplicationMallocFailedHook function in task.h instead in each C heap file (#483)
vApplicationMallocFailedHook was declared in each Heap file. which forces users to declare it and can cause problems if the prototype of the function changes. Co-authored-by: Pierre-Noel Bouteville <pnb990@gmail.com>
This commit is contained in:
parent
b00250372e
commit
e73fabce9a
7 changed files with 14 additions and 5 deletions
|
@ -249,7 +249,6 @@ void * pvPortMalloc( size_t xWantedSize )
|
|||
{
|
||||
if( pvReturn == NULL )
|
||||
{
|
||||
extern void vApplicationMallocFailedHook( void );
|
||||
vApplicationMallocFailedHook();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue