From a9bb8d1be024730fc4687aab78a8e5cb54b4f05e Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Fri, 4 May 2012 20:47:46 +0200 Subject: More OOP; --- src/kernel/lib/cpp.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/kernel/lib/cpp.cpp (limited to 'src/kernel/lib') 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 + +//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; } + + -- cgit v1.2.3