26 lines
351 B
C++
26 lines
351 B
C++
|
/* Part of esp-open-rtos
|
||
|
* BSD Licensed as described in the file LICENSE
|
||
|
*/
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
void *operator new(size_t size)
|
||
|
{
|
||
|
return malloc(size);
|
||
|
}
|
||
|
|
||
|
void *operator new[](size_t size)
|
||
|
{
|
||
|
return malloc(size);
|
||
|
}
|
||
|
|
||
|
void operator delete(void * ptr)
|
||
|
{
|
||
|
free(ptr);
|
||
|
}
|
||
|
|
||
|
void operator delete[](void * ptr)
|
||
|
{
|
||
|
free(ptr);
|
||
|
}
|