diff options
author | David Madison <dmadison@users.noreply.github.com> | 2020-02-01 04:25:52 -0500 |
---|---|---|
committer | David Madison <dmadison@users.noreply.github.com> | 2020-02-01 04:25:52 -0500 |
commit | 923b4441fed740c5ff1e42bb8f2f58ea87d4eaf7 (patch) | |
tree | 39aad14af9ba55cc9f26f2920f6ff873552f4c62 /cores/arduino/new.cpp | |
parent | 59dd6085ec8ec0a5438c1019e982fefb77f485d3 (diff) | |
parent | 0e7fae85bdfbab43242374c0289cdd806d13b0bc (diff) |
Merge ArduinoCore-avr Release 1.8.2
Diffstat (limited to 'cores/arduino/new.cpp')
-rw-r--r-- | cores/arduino/new.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cores/arduino/new.cpp b/cores/arduino/new.cpp index cf6f89c..fc30cf8 100644 --- a/cores/arduino/new.cpp +++ b/cores/arduino/new.cpp @@ -26,6 +26,11 @@ void *operator new[](size_t size) { return malloc(size); } +void * operator new(size_t size, void * ptr) noexcept { + (void)size; + return ptr; +} + void operator delete(void * ptr) { free(ptr); } |