Fix PlatformIO debug error in ext.cpp

Without this dummy implementation of std::__throw_bad_alloc() the
linker was throwing errors.
This commit is contained in:
Martin Jaeger
2020-02-05 18:06:06 +01:00
parent 83d7c36778
commit c31f8d5014
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -8,6 +8,11 @@
#include <algorithm>
// necessary for PlatformIO debug session
void std::__throw_bad_alloc() {
while (1) {}
}
// we use code to self register objects at construction time.
// It relies on the fact that initially this pointer will be initialized
// with NULL ! This is only true for global variables or static members of classes