cores
cores copied to clipboard
add missing overrides for global operator new
Updating the toolchain to support C++17 added some new overloads for operators new and delete to support overly-aligned allocations. Overrides for these are missing from Teensyduino which results in the newlib defaults being used (which link in a bunch of exception throwing/handling stuff that we don't want).
(The delete overrides aren't all that important, they're just there to ensure any memory allocated with our new operators is deallocated using the appropriate method i.e. via free() ).