Arduino Helpers master
Utility library for Arduino
vector.cpp
Go to the documentation of this file.
1#if defined(TEENSYDUINO) && !defined(AVR) && TEENSYDUINO < 153
2#include "vector"
3#include <AH/Error/Error.hpp>
4
5namespace std {
6void __throw_bad_alloc() { FATAL_ERROR(F("bad_alloc"), 0x6371); }
7
8void __throw_length_error(char const *e) {
9 FATAL_ERROR(F("length_error: ") << e, 0x6372);
10}
11} // namespace std
12#endif
#define FATAL_ERROR(msg, errc)
Print the error message and error code, and stop the execution.
Definition: Error.hpp:57
Definition: vector.cpp:5