diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-04 20:47:46 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-04 20:47:46 +0200 |
commit | a9bb8d1be024730fc4687aab78a8e5cb54b4f05e (patch) | |
tree | e10940a39e9864430b584cd84700b8d49aebd62a /src/kernel/lib/cpp.cpp | |
parent | 35857cb36ae65779a7cab773040c0fc91387a989 (diff) | |
download | TCE-a9bb8d1be024730fc4687aab78a8e5cb54b4f05e.tar.gz TCE-a9bb8d1be024730fc4687aab78a8e5cb54b4f05e.zip |
More OOP;
Diffstat (limited to 'src/kernel/lib/cpp.cpp')
-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; } + + |