cores icon indicating copy to clipboard operation
cores copied to clipboard

add missing overrides for global operator new

Open A-Dunstan opened this issue 9 months ago • 0 comments

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() ).

A-Dunstan avatar May 21 '24 23:05 A-Dunstan