diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-01-18 18:02:10 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-01-18 18:02:10 +0000 |
| commit | 8c3efb592b16b672fc353368c04d88d3a32cf1a2 (patch) | |
| tree | 9cf4887292432c656651012c5370009b4a69cddf /arduinoSrc1_0/new.cpp | |
| parent | fe92239d966f0219e8b7caf6335a776938b4e0e3 (diff) | |
Diffstat (limited to 'arduinoSrc1_0/new.cpp')
| -rw-r--r-- | arduinoSrc1_0/new.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arduinoSrc1_0/new.cpp b/arduinoSrc1_0/new.cpp new file mode 100644 index 0000000..0f6d422 --- /dev/null +++ b/arduinoSrc1_0/new.cpp @@ -0,0 +1,18 @@ +#include <new.h> + +void * operator new(size_t size) +{ + return malloc(size); +} + +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) {}; + |
