initial upload
This commit is contained in:
parent
500078ef9a
commit
910dc981b5
27 changed files with 3046 additions and 0 deletions
28
examples/osd/arduino-climate3/new.cpp
Normal file
28
examples/osd/arduino-climate3/new.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include <new.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);
|
||||
}
|
||||
|
||||
int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);};
|
||||
void __cxa_guard_release (__guard *g) {*(char *)g = 1;};
|
||||
void __cxa_guard_abort (__guard *) {};
|
||||
|
||||
void __cxa_pure_virtual(void) {};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue