2017-04-24 16:38:22 +00:00
|
|
|
#include <stddef.h>
|
2017-04-26 10:27:27 +00:00
|
|
|
#include <stdint.h>
|
2017-04-29 20:04:29 +00:00
|
|
|
/**
|
|
|
|
* __cxa_pure_virtual is function that is pointed to in the vtable entry of a pure virtual function
|
|
|
|
* we need to provide this symbol, however it should never get called.
|
|
|
|
*/
|
2017-04-24 16:38:22 +00:00
|
|
|
extern "C" void __cxa_pure_virtual() {
|
2017-04-26 10:27:27 +00:00
|
|
|
// panic("Pure virtual function called.");
|
2017-04-24 16:38:22 +00:00
|
|
|
}
|
2017-04-26 10:27:27 +00:00
|
|
|
void *operator new(size_t s) { return (void *)1; }
|
|
|
|
void *operator new[](size_t s) { return (void *)1; }
|
|
|
|
void operator delete(void *p) {}
|
|
|
|
void operator delete[](void *p) {}
|
|
|
|
void operator delete(void *p, size_t s) {}
|
|
|
|
void operator delete[](void *p, size_t s) {}
|
|
|
|
void *operator new(size_t s, void *p) { return p; }
|
|
|
|
void *operator new[](size_t s, void *p) { return p; }
|
2017-04-24 16:38:22 +00:00
|
|
|
void operator delete(void *, void *p) {}
|
|
|
|
void operator delete[](void *, void *p) {}
|