berry-lang / berry

A ultra-lightweight embedded scripting language optimized for microcontrollers.
https://berry-lang.github.io
MIT License
812 stars 97 forks source link

Add observability hook when memory allocation failed #399

Closed s-hadinger closed 6 months ago

s-hadinger commented 7 months ago

This allows to add some additional logging when memory allocation fails, in case the exception is hidden somewhere in the code.