diff options
Diffstat (limited to 'src/kernel/lib')
-rw-r--r-- | src/kernel/lib/cpp.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/kernel/lib/cpp.cpp b/src/kernel/lib/cpp.cpp new file mode 100644 index 0000000..d97e51a --- /dev/null +++ b/src/kernel/lib/cpp.cpp @@ -0,0 +1,14 @@ +#include "cpp.h" +#include <core/sys.h> + +//Enables pure virtual functions +extern "C" void __cxa_pure_virtual() { + //do nothing (or not) + PANIC("Called pure virtual function."); +} + +//Enables global objects +void *__dso_handle; +extern "C" int __cxa_atexit(void (*f)(void*), void *p, void *d) { return 0; } + + |