You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
443 B
C++
22 lines
443 B
C++
/*! \file
|
|
* \brief C++ runtime support functions
|
|
*/
|
|
|
|
#include "../types.h"
|
|
|
|
void* operator new(size_t, void* place) { return place; }
|
|
|
|
void operator delete(void* ptr) { (void)ptr; }
|
|
|
|
void operator delete(void* ptr, size_t size) {
|
|
(void)ptr;
|
|
(void)size;
|
|
}
|
|
|
|
extern "C" [[noreturn]] void __cxa_pure_virtual() {
|
|
// Pure virtual function was called -- this if obviously not valid,
|
|
// therefore we wait infinitely.
|
|
while (true) {
|
|
}
|
|
}
|