Move c++ operators back to link-time resolutions, part of 'core'

This reverts commit e9b1df5cb5.
This commit is contained in:
Angus Gratton 2015-08-26 11:07:06 +10:00
parent 7be365ef08
commit 1c8017484c
4 changed files with 29 additions and 77 deletions

View file

@ -0,0 +1,25 @@
/* 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);
}