2015-08-26 01:07:06 +00:00
|
|
|
/* Part of esp-open-rtos
|
|
|
|
* BSD Licensed as described in the file LICENSE
|
|
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2018-05-16 15:56:15 +00:00
|
|
|
void * __attribute__((weak)) operator new(size_t size)
|
2015-08-26 01:07:06 +00:00
|
|
|
{
|
|
|
|
return malloc(size);
|
|
|
|
}
|
|
|
|
|
2018-05-16 15:56:15 +00:00
|
|
|
void * __attribute__((weak)) operator new[](size_t size)
|
2015-08-26 01:07:06 +00:00
|
|
|
{
|
|
|
|
return malloc(size);
|
|
|
|
}
|
|
|
|
|
2018-05-16 15:56:15 +00:00
|
|
|
void __attribute__((weak)) operator delete(void * ptr)
|
2015-08-26 01:07:06 +00:00
|
|
|
{
|
|
|
|
free(ptr);
|
|
|
|
}
|
|
|
|
|
2018-05-16 15:56:15 +00:00
|
|
|
void __attribute__((weak)) operator delete[](void * ptr)
|
2015-08-26 01:07:06 +00:00
|
|
|
{
|
|
|
|
free(ptr);
|
|
|
|
}
|